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"
}
}
}Was this page helpful?