POST /v1/authorization/models/{model_id}:simulate
AuthorizationService_SimulateModel
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
model_idpath · string · required
Request body
checksarrayExpand fields
actionstringattributes_jsonstringpermissionstringresource_idstringresource_typestring
model_idstring
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/authorization/models/{model_id}:simulate' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"checks": [
{
"action": "<value>",
"attributes_json": "<value>",
"permission": "<value>",
"resource_id": "<value>",
"resource_type": "<value>"
}
]
}'Response contract
200 · OK
base_revisionstringchangesinteger · int32decisionsarrayExpand fields
actionstringafterbooleanafter_reasonstringbeforebooleanbefore_reasonstringindexinteger · int32resource_idstringresource_typestring
expires_atstringidstringmodel_idstringnewly_allowedinteger · int32newly_deniedinteger · int32
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.