curl --request PUT \
--url https://api.pxyz.dev/api/v0/auth/roles/{id} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"tenantId": "<string>"
}'
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"tenantId": "<string>",
"_count": {
"users": 123,
"members": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Successful response
The response is of type object
.
curl --request PUT \
--url https://api.pxyz.dev/api/v0/auth/roles/{id} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"tenantId": "<string>"
}'
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"tenantId": "<string>",
"_count": {
"users": 123,
"members": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
curl --request PUT \
--url https://api.pxyz.dev/api/v0/auth/roles/{id} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"tenantId": "<string>"
}'
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"tenantId": "<string>",
"_count": {
"users": 123,
"members": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Successful response
The response is of type object
.
curl --request PUT \
--url https://api.pxyz.dev/api/v0/auth/roles/{id} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"tenantId": "<string>"
}'
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"tenantId": "<string>",
"_count": {
"users": 123,
"members": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}