Developer reference
Access Policy in use
https://filezar.io/problems/access-policy-in-use
HTTP status: 409
API scope: First-party or operator operations
When it happens
An Access Policy cannot be deleted while a live Folder attaches it.
What to do
Detach the policy from those Folders, or attach another policy, then delete it again.
Additional fields
accessPolicyInUse(required)- The policy, how many live Folders attach it, and the first Folder ids.
Field schema
{ "type": "object", "properties": { "accessPolicyPublicId": { "type": "string", "format": "uuid" }, "folderCount": { "type": "integer" }, "folderPublicIds": { "type": "array", "items": { "type": "string", "format": "uuid" } } } }
Example response
Illustrative values only. Responses use application/problem+json.
{
"type": "https://filezar.io/problems/access-policy-in-use",
"title": "Access Policy in use",
"status": 409,
"detail": "Access Policy in use.",
"instance": "urn:s3explorer:trace:example-trace",
"traceId": "example-trace",
"spanId": "example-span",
"accessPolicyInUse": {
"accessPolicyPublicId": "33333333-3333-4333-8333-333333333333",
"folderCount": 2,
"folderPublicIds": [
"44444444-4444-4444-8444-444444444444",
"55555555-5555-4555-8555-555555555555"
]
}
}
Every problem also uses the common response fields.