live_help Notes

assignment This action requires one of theses roles: Student tutor, Advanced tutor, Advanced staff
group_work Requires following application scopes: projects

settings Params

Param name Description
id required . Must be String

The requested id

partnership optional , nil allowed . Must be a Hash
partnership[name] optional . Must be String

The name. Must be unique.

partnership[description] optional . Must be String

The description.

partnership[difficulty] optional . Must be Fixnum

The difficulty.

partnership[file] optional , nil allowed . Must be File

The file.

partnership[cursus_id] optional . Must be Fixnum

The cursus id.

partnership[user_ids] optional , nil allowed . Must be an array of Integer

The user ids.

partnership[partnerships_skills_attributes] optional , nil allowed . Must be an Array of nested elements

The partnerships skills attributes.

partnership[partnerships_skills_attributes][id] optional , nil allowed . Must be Fixnum

The id.

partnership[partnerships_skills_attributes][skill_id] optional . Must be Fixnum

The skill id.

partnership[partnerships_skills_attributes][value] optional . Must be Float

The value.

partnership[partnerships_skills_attributes][_destroy] optional , nil allowed . Must be String

The destroy.

comments powered by <span class='logo-disqus'>Disqus</span>
PUT /v2/partnerships/1
{
  "partnership": {
    "description": "The SQL system is down, generate the multi-byte capacitor so we can calculate the ADP port!",
    "name": "The Orn"
  }
}
204
curl  -X PUT -H "Authorization: Bearer YOUR_ACCESS_TOKEN" -H "Content-Type: application/json" -d '{"partnership":{"description":"The SQL system is down, generate the multi-byte capacitor so we can calculate the ADP port!","name":"The Orn"}}' "https://api.intra.42.fr/v2/partnerships/1"
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 = {partnership: {description: "The SQL system is down, generate the multi-byte capacitor so we can calculate the ADP port!", name: "The Orn"}}
response = token.put("/v2/partnerships/1", params: params)
response.status
# => 204
response.parsed
# =>