Custom fields

Delete a custom field definition

Removes a custom field definition. Set active to false with the update endpoint instead when you want to stop using a field but keep the values recorded against it.

DELETE
https://api.portal.magicdoor.com/company-app/custom-fields/{customFieldId}

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Path parameters

customFieldIdstringrequired

The custom field definition to delete. A Snowflake id sent as a decimal string.

example: 1830472847398418018

Response

200 · The definition was deleted. No body is returned.

401 · The access token is missing, expired, or not valid for this company.

404 · No custom field definition with that id exists in the caller's company.

Deleting a definition is not the same as deactivating it. If you only want the field to stop appearing, send {"active": false} to the update endpoint.