curl --request PUT \
--url https://apix.us.amity.co/api/v3/roles/{roleId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"roleId": "<string>",
"permissions": [
"<string>"
],
"displayName": "<string>"
}
'{
"status": "<string>",
"data": [
{
"roleId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"permissions": [
"<string>"
],
"isDeleted": false,
"displayName": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}Update a role
curl --request PUT \
--url https://apix.us.amity.co/api/v3/roles/{roleId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"roleId": "<string>",
"permissions": [
"<string>"
],
"displayName": "<string>"
}
'{
"status": "<string>",
"data": [
{
"roleId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"permissions": [
"<string>"
],
"isDeleted": false,
"displayName": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
information of a role to be created.
role id
1 - 100The list of permission for this role. https://docs.amity.co/amity-sdk/core-concepts/user/user-permission#permissions
display name of role
100