# createPipelineRole

Add a role of `kind` (CONTACT when omitted), as any member can. Names are unique per kind, case-folded: reuse a listPipelineRoles match. It is never Only one: that stays admin list upkeep in the app.

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

## Variables

- `name`: `String!` (required)
- `kind`: `PipelineRoleKind` (one of `CONTACT`, `USER`, `PROPERTY`, `ITEM_LINK`, `RELATIONSHIP`, `CONTACT_PROPERTY`). Which link a pipeline role labels: a person on an item (CONTACT), a teammate on an item or a contact (USER), a property on an item (PROPERTY), an item linked to an item (ITEM_LINK), a related person's link to their main contact (RELATIONSHIP), or a contact's property (CONTACT_PROPERTY). A role never changes kind.

## Response (data, an example)

```json
{
  "pipelineItemMutation": {
    "createPipelineRole": {
      "id": "<ID>",
      "kind": "CONTACT",
      "name": "…",
      "onlyOne": true
    }
  }
}
```

## 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": "createPipelineRole",
    "variables": {
      "name": "<String>"
    }
  }'
```
