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

# Set Eval Set Locked

The `setEvalSetLocked` mutation locks or unlocks an evaluation set. It requires the `evaluation:read` and `evaluation:lock` permissions. Updating, deleting, rescheduling, or pausing the schedule of a locked set also requires `evaluation:lock`.

## Signature

```graphql theme={null}
setEvalSetLocked(domainId: ID!, evalSetId: ID!, isLocked: Boolean!): EvalSet!
```

| Argument | Type | Description |
| :- | :- | :- |
| `domainId` | `ID!` | The domain the evaluation set belongs to. |
| `evalSetId` | `ID!` | The evaluation set to lock or unlock. |
| `isLocked` | `Boolean!` | `true` locks the set and `false` unlocks it. |

Returns the updated [EvalSet](https://docs.wisdom.ai/integrations/graphql-api/objects/evaluation-data-types.md#evalset).

## Example

```graphql theme={null}
mutation SetEvalSetLocked($domainId: ID!, $evalSetId: ID!, $isLocked: Boolean!) {
  setEvalSetLocked(domainId: $domainId, evalSetId: $evalSetId, isLocked: $isLocked) {
    id
    isLocked
  }
}
```

```json Variables theme={null}
{ "domainId": "domain_987654321", "evalSetId": "eval_set_123", "isLocked": true }
```

```json Response theme={null}
{ "data": { "setEvalSetLocked": { "id": "eval_set_123", "isLocked": true } } }
```


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