curl --request PUT \
--url https://apix.us.amity.co/api/v2/roles \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-API-Key: <api-key>' \
--data '
{
"publicIds": [
"<string>"
],
"permissions": [
"<string>"
]
}
'{
"status": "error",
"code": 404,
"message": "Resource Not Found."
}Add permissions
curl --request PUT \
--url https://apix.us.amity.co/api/v2/roles \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-API-Key: <api-key>' \
--data '
{
"publicIds": [
"<string>"
],
"permissions": [
"<string>"
]
}
'{
"status": "error",
"code": 404,
"message": "Resource Not Found."
}Permission information to be added
The list of role public ids
The list of permission to be added. You can see all permissions at https://docs.amity.co/amity-sdk/core-concepts/user/user-permission#permissions
OK