access_requests
Approve an access request
Changed onRecords one approver's approval at the request's current approval step. A request with further steps moves on to the next step; after the last step it is fully approved. The caller names the approver to approve on behalf of via on_behalf_of_user_id, and the acting user is then persisted as the deputy. Omit it only when the acting user is themselves an approver of the current step; an API token must always name one.
post/api/v1/access_requests/{access_request_id}/approve
Request
- Base URLhttps://app.accessowl.io
- URLhttps://app.accessowl.io/api/v1/access_requests/{access_request_id}/approve
- AuthHTTP bearer
Path parameters
access_request_idstring uuid required
Access request ID
Headers
Idempotency-Keystring
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
{
"on_behalf_of_user_id": "7488a646-e31f-11e4-aace-600308960663"
}Response
Access request approved
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
- info
endpoint added
- info