> 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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.collibra.com/tutorials/update-multiple-attributes-with-the-rest-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
