Reject an access request
Changed onRejects a fully-approved access request on the provisioning side with a required reason, recording the acting token user as provisioner. Distinct from deny (approver refusal before approval). Terminal: a request still in approval or already closed returns a validation error.
Request
- Base URLhttps://app.accessowl.io
- URLhttps://app.accessowl.io/api/v1/access_requests/{access_request_id}/reject
- AuthHTTP bearer
Path parameters
Access request ID
Headers
Optional key (1–255 chars) for safely retrying a request. Reusing the same key for the same request returns 409 Conflict and is not processed again — this confirms the request was already received. Keys are retained for 14 days.
Request body
Example request
{
"reason": "Unable to provision this access"
}Response
Access request rejected
Example response
{
"application_id": "7488a646-e31f-11e4-aace-600308960662",
"approval_steps": [
{
"approvers": [
{
"decided_at": "2023-01-15T11:00:00Z",
"decided_by_user_id": "9488a646-e31f-11e4-aace-600308960667",
"status": "approved",
"user_id": "9488a646-e31f-11e4-aace-600308960667"
}
],
"decided_at": "2023-01-15T11:00:00Z",
"status": "approved",
"step": 1,
"strategy": "all"
},
{
"approvers": [
{
"decided_at": null,
"decided_by_user_id": null,
"status": "pending",
"user_id": "9488a646-e31f-11e4-aace-600308960668"
},
{
"decided_at": null,
"decided_by_user_id": null,
"status": "pending",
"user_id": "9488a646-e31f-11e4-aace-600308960669"
}
],
"decided_at": null,
"status": "pending",
"step": 2,
"strategy": "first_to_respond"
},
{
"approvers": [
{
"decided_at": null,
"decided_by_user_id": null,
"status": "pending",
"user_id": "9488a646-e31f-11e4-aace-60030896066a"
}
],
"decided_at": null,
"status": "pending",
"step": 3,
"strategy": "all"
}
],
"duration": "PT1H",
"expires_at": "2023-01-16T10:30:00Z",
"grantee_user_id": "9488a646-e31f-11e4-aace-600308960666",
"id": "8488a646-e31f-11e4-aace-600308960665",
"inserted_at": "2023-01-15T10:30:00Z",
"permission_ids": [
"7488a646-e31f-11e4-aace-600308960664"
],
"provisioning_type": "automatic",
"request_reason": "Need access to complete Q4 reporting",
"requestor_user_id": "9488a646-e31f-11e4-aace-600308960666",
"resource_id": "7488a646-e31f-11e4-aace-600308960663",
"status": "pending_approval",
"termination_reason": null
}Changes
- breaking
response property
errors/additionalProperties/items/list-of-types was widened by adding typesobjectto media typeapplication/jsonof response422 - breaking
removed the required property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
added the new
forbiddenenum value to theresponse property for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status
- breaking
- info
endpoint added
- info