# setCustomMetadata

> Mutation in domain **Metadata**

- HTML: [setCustomMetadata.html](setCustomMetadata.html)
- Raw SDL: [setCustomMetadata.sdl](setCustomMetadata.sdl)
- Covered by: [llms.txt](../llms.txt)

Set `CustomMetadataProperty` values to any supported parent (`WorkspaceProject` | `Asset`). Attention: Existing `CustomMetadataProperty` values for the selected parents will be overwritten and/or removed. Requires `basic:write` scope to be accessible and permission level `EDIT` for the respective parent.

Status: _(beta)_

## Returns

`SetCustomMetadata`

## Arguments

- `input`: `SetCustomMetadataInput!` _(beta)_ — `SetCustomMetadata` input argument.

## Example

```graphql
mutation SetCustomMetadata {
  setCustomMetadata(
    input: {
      parentIds: ["…"]
      customMetadata: [
        {
          propertyId: "…"
        }
      ]
    }
  ) {
    __typename
    parentIds
  }
}
```

Raw: [`setCustomMetadata.example.sdl`](setCustomMetadata.example.sdl)
