Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Response
Record updated
curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/roles/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"role": {
"name": "vendor"
}
}'{
"data": {
"id": "8",
"type": "role",
"attributes": {
"name": "administrator",
"created_at": "2022-11-08T19:35:07.901Z",
"updated_at": "2022-11-08T19:35:08.133Z"
}
}
}Updates a Role
curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/roles/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"role": {
"name": "vendor"
}
}'{
"data": {
"id": "8",
"type": "role",
"attributes": {
"name": "administrator",
"created_at": "2022-11-08T19:35:07.901Z",
"updated_at": "2022-11-08T19:35:08.133Z"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
Record updated
Show child attributes
Was this page helpful?