live_help Notes

assignment_ind This action requires a token resource owner scoped on projects with enough privileges or an application with one of theses role(s): Advanced tutor .

settings Params

Param name Description
id required . Must be String

The requested id

team optional , nil allowed . Must be a Hash
team[project_id] optional , nil allowed . Must be Fixnum

The project id.

team[name] optional , nil allowed . Must be String

The name. Maximum length is 255.

team[created_at] optional , nil allowed . Must be DateTime

The created at.

team[updated_at] optional , nil allowed . Must be DateTime

The updated at.

team[locked_at] optional , nil allowed . Must be DateTime

The locked at.

team[closed_at] optional , nil allowed . Must be DateTime

The closed at.

team[final_mark] optional , nil allowed . Must be Fixnum

The final mark.

team[repo_url] optional , nil allowed . Must be String

The repo url.

team[repo_uuid] optional , nil allowed . Must be String

The repo uuid.

team[deadline_at] optional , nil allowed . Must be Fixnum

The deadline at. Must be after today.

team[terminating_at] optional , nil allowed . Must be DateTime

The terminating at.

comments powered by <span class='logo-disqus'>Disqus</span>
PUT /v2/teams/3
{
  "team": {
    "origin_user_id": "40",
    "project_id": "2"
  }
}
204
curl  -X PUT -H "Authorization: Bearer YOUR_ACCESS_TOKEN" -H "Content-Type: application/json" -d '{"team":{"origin_user_id":"40","project_id":"2"}}' "https://api.intra.42.fr/v2/teams/3"
require "oauth2"
UID = "Your application uid"
SECRET = "Your application secret"
client = OAuth2::Client.new(UID, SECRET, site: "https://api.intra.42.fr")
token = client.client_credentials.get_token

params = {team: {origin_user_id: "40", project_id: "2"}}
response = token.put("/v2/teams/3", params: params)
response.status
# => 204
response.parsed
# =>