# setWorkflowAssignee

Audience: Programmer

**Served by:** [workflow](https://docs.pyck.cloud/latest/api/services/workflow.md)

## Arguments

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `input` | [SetWorkflowAssigneeInput](https://docs.pyck.cloud/latest/api/inputs/setworkflowassigneeinput.md)! |  |  |

## Returns

[SetWorkflowAssigneeResponse](https://docs.pyck.cloud/latest/api/types/setworkflowassigneeresponse.md)

## Example

Assigns a workflow execution to a specific user.

```graphql
mutation SetWorkflowAssignee($input: SetWorkflowAssigneeInput!) {
  setWorkflowAssignee(input: $input) {
    assignee
  }
}
```

**Variables**

```json
{
  "input": {
    "assignee": "<user ID to assign>",
    "runID": "<run ID>",
    "workflowID": "<workflow execution ID>"
  }
}
```
