Lease template categories

Create a lease template category

Adds a category for the company to file its lease templates under.

POST
https://api.portal.magicdoor.com/company-app/lease-templates/categories

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.

Body

application/json

namestringrequired

Category name. Up to 150 characters.

Response

200 · The category that was created.

idstring

Id of the category. A Snowflake id, sent as a decimal string.

namestring

Category name. 1 to 150 characters.

isDefaultboolean

True for MagicDoor's built-in categories, false for ones the company added.

400 · The request failed validation. `errors` maps each field name to what was wrong with it.

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