Create Object

POST /api/v1/objects

Creates an object. Add its fields next with Create Field.

CLI: fob-mdm objects create

Request Body

FieldTypeRequiredDescription
slugstringYesMachine name: lowercase letters, numbers and underscores, starting with a letter. Can't be changed later
labelstringYesDisplay name

Example Request

curl -X POST "https://mdm.finopsbricks.com/api/v1/objects" \
  -H "api-key: $MDM_API_KEY" \
  -H "api-secret: $MDM_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "slug": "vendor",
    "label": "Vendor"
  }'

Response

201 Created

{
  "data": {
    "id": 1,
    "slug": "vendor",
    "label": "Vendor",
    "created_at": "2026-11-26T07:20:08.000Z",
    "updated_at": "2026-11-26T07:20:08.000Z"
  }
}

Errors

StatusCodeWhen
400VALIDATION_ERRORslug or label is missing, or slug has other characters
401UNAUTHORIZEDMissing, wrong or expired API credentials
403FORBIDDENThe key lacks objects:create permission
409CONFLICTThe slug exists; details.id is the existing object

See Errors for the envelope.

Using an AI agent? Give it the raw Markdown of this page, or the docs index.