curl --request GET \
--url http://{defaultHost}/api/v2/platform/roles/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "6",
"type": "role",
"attributes": {
"name": "Role 6",
"created_at": "2022-11-08T19:35:07.384Z",
"updated_at": "2022-11-08T19:35:07.384Z"
}
}
}
Returns a Role
curl --request GET \
--url http://{defaultHost}/api/v2/platform/roles/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "6",
"type": "role",
"attributes": {
"name": "Role 6",
"created_at": "2022-11-08T19:35:07.384Z",
"updated_at": "2022-11-08T19:35:07.384Z"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Record found
The response is of type object
.
Was this page helpful?