Delete role
Deletes a role
POST
/appid-{appId}/recipe/role/removeAuthorization
api-keyAPI key · headerrequiredThe core service API token. If you are using a self-hosted core service and you have not generated a token, you can omit the header.
Header parameters
ridstringcdi-versionstringX.Y of the X.Y.Z CDI version.
Request body
application/jsonrolerolerequiredResponses
200The operation was successful
statusstatusOKAllowed:
OKdidRoleExistboolean400error code 400
string401error code 401
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "/appid-{appId}/recipe/role/remove" \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"role": "admin"
}'const response = await fetch("/appid-{appId}/recipe/role/remove", {
method: "POST",
headers: {
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"role": "admin"
})
});import requests
response = requests.post(
"/appid-{appId}/recipe/role/remove",
headers={
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"role": "admin"
},
)Response
{
"status": "OK",
"didRoleExist": true
}"string""Invalid API key""Not Found""Internal Error"