Create Object
POST /api/v1/objects
Creates an object. Add its fields next with Create Field.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | Machine name: lowercase letters, numbers and underscores, starting with a letter. Can't be changed later |
label | string | Yes | Display 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
| Status | Code | When |
|---|---|---|
| 400 | VALIDATION_ERROR | slug or label is missing, or slug has other characters |
| 401 | UNAUTHORIZED | Missing, wrong or expired API credentials |
| 403 | FORBIDDEN | The key lacks objects:create permission |
| 409 | CONFLICT | The 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.