The resource is in use
resource-in-use
| Type URI | https://docs.panquest.com/qfx/problems/resource-in-use |
|---|---|
| Status | 409 Conflict |
| Title | The resource is in use |
| Members of its own | scheduleIds, seriesIds, legalHoldIds, lockIds |
When
The resource cannot be deleted or changed while something depends on it, or in the state it is in: an index linked to a collection or still holding values, an index that is not shareable and already used by another collection, a collection that is not empty or that a schedule's series draws from (scheduleIds and seriesIds name them), a storage location that has assignments or is the default, a permission assigned to a role, a series that a schedule, an export or a cache action that has not finished, a permission, a series that contains it, or an active legal hold or lock still uses (detail names what uses it; legalHoldIds and lockIds name the holds), a series a schedule dates from changed by a caller who may not manage schedules, and an export or a cache action that has ended or is deleted already.
What to do
Remove what depends on the resource first (delete the schedule or change its series, let the export or cache action finish, revoke the permission, release the hold), then send the request again.
Example
HTTP/1.1 409 Conflict
Content-Type: application/problem+json
Content-Language: en
{
"type": "https://docs.panquest.com/qfx/problems/resource-in-use",
"title": "The resource is in use",
"status": 409,
"detail": "The collection is in use by a schedule (SC-JAA7D-00012), whose series (SR-JAA7D-00003) draws from it; delete the schedule, or change its series, before deleting the collection",
"instance": "urn:uuid:3f1c2a0e-7d4b-4c55-9a2e-5b8f0c1d2e3f",
"parameters": {
"collection-name": "INVOICES"
},
"scheduleIds": [
"SC-JAA7D-00012"
],
"seriesIds": [
"SR-JAA7D-00003"
]
}