live_help Notes

assignment_ind This action requires a token resource owner scoped on profile 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

expertises_user optional , nil allowed . Must be a Hash
expertises_user[expertise_id] optional . Must be Fixnum

The expertise id. Must be unique in the scope of a given user.

expertises_user[user_id] optional . Must be Fixnum

The user id.

expertises_user[interested] optional , nil allowed . Must be one of: true, false.

Is it interested ? Default to false.

expertises_user[value] optional . Must be Fixnum

The value.

expertises_user[contact_me] optional , nil allowed . Must be one of: true, false.

Is it contact me ? Default to false.

PUT /v2/expertises_users/3
{
  "expertises_user": {
    "expertise_id": "6",
    "user_id": "125",
    "value": "1"
  }
}
204
curl  -X PUT -H "Authorization: Bearer YOUR_ACCESS_TOKEN" -H "Content-Type: application/json" -d '{"expertises_user":{"expertise_id":"6","user_id":"125","value":"1"}}' "https://api.intra.42.fr/v2/expertises_users/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 = {expertises_user: {expertise_id: "6", user_id: "125", value: "1"}}
response = token.put("/v2/expertises_users/3", params: params)
response.status
# => 204
response.parsed
# =>