Import an application's access
Changed onImports the complete access list for one application. Users, resources and permissions are matched by email and title. Any access not present in the body is removed. An email matching no known user creates one. If any row cannot be resolved, nothing is written and every rejected row is listed in the response. Importing into an application with an active access-syncing integration is permitted; the next scheduled sync will overwrite what the import wrote. Because this call replaces all of an application's access, send a unique Idempotency-Key header so an accidentally repeated request is rejected rather than re-applied.
Request
- Base URLhttps://app.accessowl.io
- URLhttps://app.accessowl.io/api/v1/applications/{application_id}/access_states
- AuthHTTP bearer
Path parameters
Application 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
{
"access": [
{
"permissions": [
"Admin"
],
"resource": "Billing",
"user_email": "ana@example.com"
}
]
}Response
Import result
Example response
{
"data": {
"created": 12,
"deleted": 5,
"unchanged": 40,
"updated": 3
}
}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
- breaking
the
//request property's minItems was increased to1 - info
the request property
//became nullable
- breaking