# setPipelineItemAgent

Make a teammate assigned to the pipeline item its deal owner (getPipelineItem agent), who speaks for it.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "setPipelineItemAgent", "variables": {...} }`
- Scope: `WRITE`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `pipelineItemId`: `ID!` (required)
- `userId`: `ID!` (required)

## Response (data, an example)

```json
{
  "pipelineItemMutation": {
    "setPipelineItemAgent": {
      "id": "<ID>",
      "agent": {
        "id": "<ID>",
        "firstName": "…",
        "lastName": "…"
      }
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "setPipelineItemAgent",
    "variables": {
      "pipelineItemId": "<pipelineItemId>",
      "userId": "<userId>"
    }
  }'
```
