Archive an entity
/api/v1/entities/{entity_uuid}/archive
operationId: entity.archive
Base: https://portal.watcheye.com.au/api/v1/entities/{entity_uuid}/archive
Archives the entity together with all checks, reports, events, notes and identification
checks belonging to it. Archived records remain fully visible via list and show endpoints
and can be included or excluded with the archived query parameter on the entities list.
Use archive instead of delete when you need to take a record out of day-to-day workflows but want to keep it accessible for compliance, audit or historical reporting. See the Soft Deletion section of the API guide for the differences between archive and delete.
Calling archive on an entity that is already archived returns the entity in its current state without recording a new audit entry or re-cascading to the child records.
The response body contains the entity with archived_at set to the ISO 8601 timestamp at
which the archive took effect. (The archived_at field is always present on entity
responses; it is null when the entity is not archived and an ISO 8601 timestamp when
it is.)
Idempotency
This endpoint accepts the Idempotency-Key header so that retries on network failure are
safe. See the Idempotency section of the
API guide for the full contract.
Path parameters
| Field | Description |
|---|---|
entity_uuidrequired |
string (uuid) The entity UUID |
Header parameters
| Field | Description |
|---|---|
Idempotency-Key |
string [max 255 characters] Optional client-generated key (typically a UUID) that lets you safely retry a write
request without risk of duplicate work or duplicate billing. A retry with the same key
and body returns the original response verbatim, with the Honoured on |
Responses
Entity archived
application/json
| Field | Description |
|---|---|
data |
object |
data. |
string (uuid) The entity's UUID |
data. |
string A short obfuscated public identifier for the entity (e.g. "E-A1-B2C-3D4") |
data. |
string or null An optional customer-supplied reference number, unique within the program |
data. |
string The type of entity:
|
data. |
string or null The display name of the entity, computed from the relevant type-specific fields |
data. |
string or null First name (individuals only) |
data. |
string or null Middle name (individuals only) |
data. |
string or null Last name (individuals only) |
data. |
string (date) or null Date of birth in |
data. |
string or null Business name (businesses only) |
data. |
string or null Business identifier (businesses only); format depends on |
data. |
string or null The type of
|
data. |
string or null Vessel name (vessels only) |
data. |
string or null Property name (properties only) |
data. |
string or null First line of address |
data. |
string or null Second line of address |
data. |
string or null Suburb / locality |
data. |
string or null State / region (Australian state code if |
data. |
string or null Postal / zip code |
data. |
string or null Two-letter ISO 3166-1 alpha-2 country code (e.g. |
data. |
string or null Primary phone number |
data. |
string or null Secondary phone number |
data. |
string or null Additional phone number |
data. |
string or null Additional phone number |
data. |
string (email) or null Primary email address |
data. |
string (email) or null Secondary email address |
data. |
string (email) or null Additional email address |
data. |
string (email) or null Additional email address |
data. |
array of strings Manual flags applied to the entity. Permitted values:
|
data. |
string or null Risk level assigned to the entity:
|
data. |
string (date-time) or null ISO 8601 timestamp at which the entity was archived (null if not archived) |
data. |
string (date-time) or null ISO 8601 timestamp at which the entity was soft-deleted (null if not deleted). Only populated on the response from a DELETE call. |
data. |
string (uuid) UUID of the program this entity belongs to |
data. |
string (date-time) ISO 8601 timestamp at which the entity was created |
data. |
string (date-time) ISO 8601 timestamp at which the entity was last updated |
api_reference |
string (uuid) |
Conflict - a request with this Idempotency-Key is currently being processed
application/json
| Field | Description |
|---|---|
message |
string |
Idempotency-Key was reused with a different request body
application/json
| Field | Description |
|---|---|
message |
string |