# addCreatorsToVettingList

Mutation

Add creators to a vetting list by list id or name, creating a list by name when none matches; an unknown creator id is reported at its index and the rest still apply.

Available to agents as MCP tool `addCreatorsToVettingList` — see [Write tools](/api/v2/docs/mcp/write-tools#add-creators-to-vetting-list).

## Arguments

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `creatorIds` | `[ID!]!` | Yes | — | Creator ids to add, as returned by `creators` or `creator`. At least 1 and at most 40. An id that is not a creator of this workspace is reported at its index; the rest are added. |
| `vettingListId` | `ID` | No | — | The list to add to, as returned by `vettingLists`. Pass this or `vettingListName`, not both. |
| `vettingListName` | `String` | No | — | The list to add to, by exact name; a name that matches no list creates it. At most 255 characters. Pass this or `vettingListId`, not both. |

## Returns

| Name | Type | Description |
| --- | --- | --- |
| `userErrors` | [`[UserError!]!`](/api/v2/docs/types/user-error) | Refusals. An unknown creator id is reported at ["creatorIds", "<index>"] and the rest still apply. These refuse the whole call: an unknown list, a bad list argument, an empty or oversized id list. So does a workspace with no user to attribute the write to. Empty on success. Contention with another write is a `SERVICE_UNAVAILABLE` error to retry, not a userError. |
| `vettingList` | [`VettingList`](/api/v2/docs/types/vetting-list) | The list after the write. Null when the whole call was refused. |

## Examples

### Add creators to a vetting list

Add creators to a vetting list by its id; a creator already on the list stays on it.

```graphql
mutation AddCreatorsToVettingListDefault($vettingListId: ID, $creatorIds: [ID!]!) {
  addCreatorsToVettingList(vettingListId: $vettingListId, creatorIds: $creatorIds) {
    vettingList {
      id
      name
      creatorsCount
      creatorIds
    }
    userErrors {
      field
      message
    }
  }
}
```

Variables:

```json
{
  "vettingListId": "8da4da49-bddb-56ef-9b66-2e77cc0a0849",
  "creatorIds": [
    "5e6f95ca-070b-5cef-8e0c-08d855365419"
  ]
}
```

Response — HTTP 200:

```json
{
  "data": {
    "addCreatorsToVettingList": {
      "vettingList": {
        "id": "8da4da49-bddb-56ef-9b66-2e77cc0a0849",
        "name": "Spring Shortlist",
        "creatorsCount": 1,
        "creatorIds": [
          "5e6f95ca-070b-5cef-8e0c-08d855365419"
        ]
      },
      "userErrors": []
    }
  }
}
```
