Skip to content
Navigation

Archive (or purge) a data-object definition

Soft-archives a definition. Authorization: organization administrators only — other callers get 403. Query: purge=true forces removal even when live objects exist; without it, a definition that still has live objects returns 409 objects_exist (with count). Unknown id → 404. Returns the archived { definition }.

DELETE
https://api.cloudraker.com/objects/definitions/{definitionId}
Try it
Path parameters
Query parameters
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • definitionId
    string
    required

Query parameters

  • purge
    optional
    true
    or
    false

    Pass true to archive even when live objects still exist (they are left untouched).

Returns

200

The archived definition.

JSON
  • definition
    object
    required
    • _id
      string
      required
    • nameSingular
      string
      required
    • namePlural
      string
      required
    • labelSingular
      string
      required
    • labelPlural
      string
      required
    • description
      string
      required
    • icon
      string
      required
    • color
      string | null
      required
    • labelFieldKey
      string
      required

      Field key whose value is the object’s display label.

    • fields
      array of
      map<unknown>
      required

      The type-discriminated field model (13 field types plus composites). Emitted permissively so the resource stays navigable.

    • fieldGroups
      array of
      map<unknown>
      required
    • version
      number
      required

      Bumps only on a schema-affecting change.

    • archivedAt
      required

      Any of the following:

      • string
      • null
    • createdAt
      string
      required
      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
    • updatedAt
      string
      required
      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
    • createdBy
      string
      required

403

Caller is not an org admin.

404

No definition with that id.

409

objects_exist — live objects remain and purge was not set.

Type to search…

↑↓ navigate↵ selectEsc close