Permission required:
policy:custom_role_managePath Parameters
Headers
Response
Errors
Errors answer withsuccess: false, a message and an error_code. See Error Codes for every code.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X DELETE 'https://app.memorylake.ai/openapi/memorylake/admin/v1/roles/data_analyst' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Idempotency-Key: 7c1d2e3f-0a9b-4c8d-b7e6-f5a4d3c2b1a0'
{
"success": true,
"message": "Operation completed successfully",
"data": {}
}
Deletes a custom role together with its permission rules and access scope
curl -X DELETE 'https://app.memorylake.ai/openapi/memorylake/admin/v1/roles/data_analyst' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Idempotency-Key: 7c1d2e3f-0a9b-4c8d-b7e6-f5a4d3c2b1a0'
{
"success": true,
"message": "Operation completed successfully",
"data": {}
}
DELETE /openapi/memorylake/admin/v1/roles/{role_key}
policy:custom_role_managecurl -X DELETE 'https://app.memorylake.ai/openapi/memorylake/admin/v1/roles/data_analyst' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Idempotency-Key: 7c1d2e3f-0a9b-4c8d-b7e6-f5a4d3c2b1a0'
{
"success": true,
"message": "Operation completed successfully",
"data": {}
}
success: false, a message and an error_code. See Error Codes for every code.
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, disabled or expired |
403 | The key is not allowed to do this |
404 | The resource does not exist |
409 | The request conflicts with the current state, e.g. a duplicate or a limit reached |
422 | The body or a parameter failed validation |
429 | Too many requests. Wait for the time in Retry-After |
500 | Server-side error |
503 | Temporarily unavailable. Retry later |