v1

latestOpenAPI 3.1.02026-08-04103211436.0 KB
Attributes

Create attributes in bulk

Creates several attributes in a single call, following the same rules as the single attribute creation endpoint (upsert by customId; omitting values on an existing attribute removes all of its current values).

post/attributes/{companyId}/bulk

Path parameters

companyIdstring required

Request body

Example request

{
  "data": [
    {
      "customId": "cost-center",
      "name": "Cost Center",
      "values": [
        {
          "customId": "madrid",
          "name": "Madrid",
          "parentCustomId": "spain"
        }
      ],
      "parentCustomId": "country"
    }
  ]
}

Response

Successful Response