Create a managerial key type

POST/api/v1/businesses/{business_id}/managerial-key-mappings/key-types

Add a new key type (a column of the mapping table). The key is a lowercase slug and must be unique within the business.

Operation ID: create_managerial_key_type_api_v1_businesses__business_id__managerial_key_mappings_key_types_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

business_idstringrequired

Request body

keystringrequired

Stable slug used in the API (lowercase, digits, underscores).

labelstringrequired
descriptionstring
sort_orderinteger

Responses

201Successful Response

successboolean
messagestring
codestring
dataManagerialKeyTypeResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

409Conflict - Resource already exists

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject