Skip to main content
admin

Archive Global Field Definition

Archive one global definition and return it. Superadmin only.

DELETE
/api/admin/field-definitions/{field_id}

The definition disappears from every company's read; machine values stay stored and machine reads still return them, and machine writes refuse new values for it. Archiving an archived definition returns it unchanged. An unknown definition, or an unknown or malformed field_id, answers 404. Bring it back with the create request and restore: true (see the create route) or with an update body carrying archived: false.

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

field_idstringrequired
entity_typeenum<string>queryrequired
Available options: machine, routine

Response

application/json

Successful Response