> For the complete documentation index, see [llms.txt](https://developer.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.collibra.com/tutorials/update-multiple-attributes-with-the-rest-api.md).

# Update multiple attributes with the REST API

Use the `PATCH` method of the `/attributes/bulk` endpoint of the Collibra Core REST API to update multiple attributes.

```bash
curl -X PATCH 'https://<your_collibra_url>/rest/2.0/attributes/bulk' \
-H 'Content-Type: application/json' \
-d '[
    {
        "id": "a30b2eee-76ba-48ec-818d-70038dcaaa15",
        "value": "Team Lead developer"
    },
    {
        "id": "0e06f395-337f-427a-b708-f73867cec3b7",
        "value": ["English", "French"]
    }
]'
```

You must provide two parameters in JSON format:

* **id**: the universally unique identifier (UUID) of the attribute that you want to modify.
* **value**: the new value of the attribute.

In this example, two employees have updates that need to be reflected in Collibra Platform:

* Colette Davis has had a promotion and the **Job Title** attribute needs to be updated to *Team Lead developer*.
* John Fisher's profile is not reflecting his knowledge of French and the **Languages** attribute needs to be updated to *English* and *French*.

## Steps

* Retrieve the IDs of the assets that contain the attributes:

  ```bash
  curl -X GET 'https://\<your_dgc_environment_url\>/rest/2.0/assets?name=Colette%20Davis'
  ```

  <img src="/files/DFbfnLLavG0Y1jmCbLKo" alt="" width="50%">
* Retrieve the IDs of the attributes for each of the assets that need to be updated:

  ```bash
  curl -X GET 'https://\<your_dgc_environment_url\>/rest/2.0/assets?assetId=196523f3-59cc-465b-b9a7-0fcf8dcd5578'
  ```

  <img src="/files/sy7fYp5gEmDQRV5lStN6" alt="" width="50%">
* Use the IDs of the attributes and provide new values for each of them:

  ```bash
  curl -X PATCH 'https://\<your_collibra_url\>/rest/2.0/attributes/bulk' \
  -H 'Content-Type: application/json' \
  -d '[
      {
          "id": "a30b2eee-76ba-48ec-818d-70038dcaaa15",
          "value": "Team Lead developer"
      },
      {
          "id": "0e06f395-337f-427a-b708-f73867cec3b7",
          "value": ["English", "French"]
      }
  ]'
  ```

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Use an array as the value for <strong>Multiple Selection</strong> attributes.</p></div>
