---
title: "Add internal attributes to operations in bulk"
method: POST
path: "/operations/{companyId}/attributes/bulk"
tags: ["Operations"]
---

# Add internal attributes to operations in bulk

`POST /operations/{companyId}/attributes/bulk`

Attaches internal attribute values to operations, identified by `customId`. These attributes are for internal use only and are not shared back with the ERP through the regular operation fields.

## Path parameters

- `companyId` string, required

## Request body

- BulkPostOperationsAttributesRequestSchema
  - `data` PostOperationsAttributesRequestSchema[], required — Attribute values to add, grouped by operation.
    - `customId` string, required — Custom ID of the operation to attach attributes to.
    - `attributes` AttributeValueRequestSchema[], required — Internal attribute values to attach to the operation.
      - `customId` string, required — Custom ID of the attribute (see the Attributes endpoints) being set.
      - `value` string, required — Display text of the value being set on this entity.
      - `valueCustomId` string, nullable — Custom ID of one of the attribute's predefined `values`, when the attribute is of type `list`. Leave unset for free-form `string`/`number` attributes.
      - `parentCustomId` string, nullable — Not used when attaching an attribute value to an entity.

## Response `200`

Successful Response

- BulkUpsertOperationsResponseSchema
  - `data` UpsertOperationsResponseSchema[], required — Result of the bulk operation, one entry per operation.
    - `id` string, required — Embat resource ID
    - `customId` string, required — Client-provided custom ID

## Other responses

- `401` — Unauthorized. The bearer token is missing, invalid or expired.
- `404` — Not found. The requested resource or `companyId` does not exist.
- `422` — Validation Error
- `500` — Unexpected error. Contact support if it persists.

---

[API](https://skmtc.net/embat/apis/embat-api.md) · [All operations](https://skmtc.net/embat/apis/embat-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/embat/embat-api/revisions/6fd4a79f8f74/schema)
