live_help Notes

assignment This action requires one of theses roles: Advanced tutor, Advanced staff

settings Params

Param name Description
id required . Must be String

The requested id

roles_entity optional , nil allowed . Must be a Hash
roles_entity[role_id] optional . Must be Fixnum

The role id. Must be unique in the scope of a given entity id and entity type.

roles_entity[entity_id] optional . Must be Fixnum

The entity id.

roles_entity[expires_at] optional , nil allowed . Must be DateTime

The expires at.

roles_entity[entity_type] optional , nil allowed . Must be one of: Doorkeeper::Application.

The entity type.

PUT /v2/roles_entities/9
  "roles_entity": {
    "entity_id": "8",
    "entity_type": "Doorkeeper::Application",
    "role_id": "8"
curl  -X PUT -H "Authorization: Bearer YOUR_ACCESS_TOKEN" -H "Content-Type: application/json" -d '{"roles_entity":{"entity_id":"8","entity_type":"Doorkeeper::Application","role_id":"8"}}' ""
require "oauth2"
UID = "Your application uid"
SECRET = "Your application secret"
client =, SECRET, site: "")
token = client.client_credentials.get_token

params = {roles_entity: {entity_id: "8", entity_type: "Doorkeeper::Application", role_id: "8"}}
response = token.put("/v2/roles_entities/9", params: params)
# => 204
# =>