Create Record

POST /api/v1/records

Creates a record. Values sent here are recorded in its history with cause initial_load. If any key is unknown or retired, nothing is created.

CLI: fob-mdm records create

Request Body

FieldTypeRequiredDescription
objectnumberYesThe object the record belongs to
valuesobjectNoGolden values keyed by field key

Example Request

curl -X POST "https://mdm.finopsbricks.com/api/v1/records" \
  -H "api-key: $MDM_API_KEY" \
  -H "api-secret: $MDM_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "object": 1,
    "values": {
      "name": "Acme Supplies Private Limited",
      "gstin": "29ABCDE1234F1Z5",
      "bank_ifsc": "HDFC0001234"
    }
  }'

Response

201 Created

{
  "data": {
    "id": 100,
    "object": 1,
    "values": {
      "name": "Acme Supplies Private Limited",
      "gstin": "29ABCDE1234F1Z5",
      "bank_ifsc": "HDFC0001234"
    },
    "created_at": "2026-11-26T07:20:08.000Z",
    "updated_at": "2026-11-26T07:20:08.000Z"
  }
}

Errors

StatusCodeWhen
400VALIDATION_ERRORobject is missing, or values names an unknown field (details.fields lists the valid keys)
401UNAUTHORIZEDMissing, wrong or expired API credentials
403FORBIDDENThe key lacks records:create permission
404NOT_FOUNDNo such object in your organization
422FIELD_RETIREDvalues includes a retired field

See Errors for the envelope.

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