/api/v1/locations/{record}/timeline/{type}/{entry}
Delete a location timeline entry
Permanently delete an event or to-do from a location’s timeline, with its files and comments.
Last updated
Request
DELETE /api/v1/locations/{record}/timeline/{type}/{entry}
Requires locations:read and locations:timeline:delete. For a todo entry, locations:todos is required as well. See token permissions.
Send Authorization: Bearer YOUR_API_TOKEN and Accept: application/json. Send the request body as JSON with Content-Type: application/json. This write requires Idempotency-Key. Reuse the same key only when retrying the same action.
Path parameters
-
recordinteger Required - The numeric location ID in your token’s organization.
-
typestring Required person_location_eventfor an event recorded on this location, ortodofor one of its to-dos. This matches thetypein the timeline.-
entryinteger Required - The entry’s
event_idfrom the timeline, or the to-doid.
Query parameters
This endpoint does not use query parameters.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
version |
string | Yes | The 64-character version from the latest GET of this entry. |
Example
Set ASSETCENTER_API_TOKEN as described in the quick start. Replace example record and option IDs with values from your organization. Set IDEMPOTENCY_KEY to a new UUID for this action; keep it for retries. Set VERSION to the version from your latest GET.
curl --request DELETE "https://my.assetcenter.app/api/v1/locations/123/timeline/person_location_event/901" \
--header "Authorization: Bearer $ASSETCENTER_API_TOKEN" \
--header "Accept: application/json" \
--header "Idempotency-Key: $IDEMPOTENCY_KEY" \
--header "Content-Type: application/json" \
--data '{"version":"VERSION"}'
Response
200 OK.
{
"data": {
"entry_id": 901,
"entry_deleted": true
}
}
Behavior and constraints
Deletes the entry with its comments and attachments; the location itself is kept. Deletion cannot be undone. Check can_delete from get the entry first: entries the organization’s rules protect from deletion return 403. A stale version returns 409. Retrying with the same key replays the original response after the entry is gone.
Errors
401 means the token is missing, expired, revoked, or not a customer API token. 403 means a required permission or administrator access is missing. 404 means the record or child record is unavailable in this organization. 422 identifies invalid or unsupported input; inspect the errors object when present. 409 indicates a conflicting state or concurrent change; inspect the message and refresh the record before deciding how to proceed. Reusing an idempotency key with a different method, path, or body also returns 409. 429 means a rate limit was reached. See error handling and rate limits.