curl --request POST \
--url http://{defaultHost}/api/v2/platform/roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role": {
"name": "vendor"
}
}
'{
"data": {
"id": "5",
"type": "role",
"attributes": {
"name": "Role 5",
"created_at": "2022-11-08T19:35:07.110Z",
"updated_at": "2022-11-08T19:35:07.110Z"
}
}
}Creates a Role
curl --request POST \
--url http://{defaultHost}/api/v2/platform/roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role": {
"name": "vendor"
}
}
'{
"data": {
"id": "5",
"type": "role",
"attributes": {
"name": "Role 5",
"created_at": "2022-11-08T19:35:07.110Z",
"updated_at": "2022-11-08T19:35:07.110Z"
}
}
}Was this page helpful?