# setPipelineItemLinkRole

The ITEM_LINK role of a link between two pipeline items (getPipelineItem linkedItems id); the link's label becomes its name. roleId null clears the role AND the link's label. An Only-one role moves off its previous holder.

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

## Variables

- `linkId`: `ID!` (required)
- `roleId`: `ID`

## Response (data, an example)

```json
{
  "pipelineItemMutation": {
    "setPipelineItemLinkRole": {
      "id": "<ID>",
      "label": "…",
      "role": {
        "id": "<ID>",
        "name": "…"
      }
    }
  }
}
```

## 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": "setPipelineItemLinkRole",
    "variables": {
      "linkId": "<linkId>"
    }
  }'
```
