> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fire.rest/llms.txt
> Use this file to discover all available pages before exploring further.

# Sincronizar classificações (atribuições)

> Substitui o conjunto completo de atribuições de classificação para os itens especificados.

<ParamField header="x-api-key" type="string" required>
  API key do BOH com escopo `catalog:write`.
</ParamField>

<ParamField path="vendorId" type="string" required>UUID do vendor.</ParamField>

<ParamField body="assignments" type="object[]" required>
  <Expandable title="campos da atribuição">
    <ParamField body="item_id" type="string">UUID do item.</ParamField>
    <ParamField body="external_item_id" type="string">ID externo do item.</ParamField>
    <ParamField body="classification_values" type="string[]" required>Array de IDs de valores de classificação.</ParamField>
  </Expandable>
</ParamField>

<RequestExample>
  ```json theme={null}
  {
    "assignments": [
      {
        "external_item_id": "tomate",
        "classification_values": ["cls_val_legume_01"]
      }
    ]
  }
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  { "synced": 1 }
  ```
</ResponseExample>
