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

# updateManagedTagValues

> Sets the text, `order` and `parentKey` of existing tags, matched by `key`. A key that isn't in the list fails with `NotFoundError` and nothing changes. When a tag's text changes, cards that hold the old text get the new text in the background.



**mutation** `updateManagedTagValues(input: UpdateManagedTagValuesInput!): UpdateManagedTagValuesPayload!`

## Arguments

**`input`**: `UpdateManagedTagValuesInput!` (required)

## Returns

`UpdateManagedTagValuesPayload!`

**`errors`**: `[UpdateManagedTagValuesError!]`

---

**`updatedValuesResult`**: `UpdatedValuesResult`

## Examples

```graphql Mutation
mutation UpdateManagedTagValues($input: UpdateManagedTagValuesInput!) {
  updateManagedTagValues(input: $input) {
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
    updatedValuesResult {
      updated
    }
  }
}
```

```json Variables
{
  "input": {
    "tagId": "id",
    "updates": [
      {
        "key": "string",
        "order": 1.5,
        "value": {}
      }
    ]
  }
}
```

```json Response
{
  "data": {
    "updateManagedTagValues": {
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ],
      "updatedValuesResult": {
        "updated": 1
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.