Skip to main content
records

Archive Company Field Definition

Archive one definition of this company and return it. Superadmin only.

DELETE
/api/records/{company_name}/field-definitions/{field_id}

Machine values stay stored and machine reads still return them; the company read leaves the archived definition out and machine writes refuse new values for it. Archiving an archived definition returns it unchanged. An unknown company, 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.

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

Response

application/json

Successful Response