live_help Notes

assignment This action requires one of theses roles: Admin

settings Params

Param name Description
id required . Must be String

The requested id

changelog optional , nil allowed . Must be a Hash
changelog[user_id] optional , nil allowed . Must be Fixnum

The user id.

changelog[content] optional , nil allowed . Must be String

The content.

changelog[version] optional , nil allowed . Must be String

The version.

changelog[released] optional , nil allowed . Must be one of: true, false.

Is it released ? Default to false.

comments powered by <span class='logo-disqus'>Disqus</span>
PUT /v2/changelogs/13
{
  "changelog": {
    "content": "A *test* changelog \\o/",
    "released": "true",
    "user_id": "1",
    "version": "2.0.0"
  }
}
204
curl  -X PUT -H "Authorization: Bearer YOUR_ACCESS_TOKEN" -H "Content-Type: application/json" -d '{"changelog":{"content":"A *test* changelog \\o/","released":"true","user_id":"1","version":"2.0.0"}}' "https://api.intra.42.fr/v2/changelogs/13"
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 = {changelog: {content: "A *test* changelog \o/", released: "true", user_id: "1", version: "2.0.0"}}
response = token.put("/v2/changelogs/13", params: params)
response.status
# => 204
response.parsed
# =>