# archivePipelineItem

Archive or RESTORE one pipeline item by id (isArchived true or false); archivePipelineItems archives many. Reversible: archiving takes the pipeline item off the pipeline BOARD and deletes nothing. findPipelineItems finds archived ones with isArchived: true. Archiving triggers no workflow, so it never sends a message. The pipeline item must be in a pipeline owned by or shared with your organization.

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

## Variables

- `pipelineItemId`: `ID!` (required)
- `isArchived`: `Boolean!` (required)

## Response (data, an example)

```json
{
  "pipelineItemMutation": {
    "changeArchiveStatus": {
      "id": "<ID>",
      "title": "…",
      "isArchived": 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": "archivePipelineItem",
    "variables": {
      "pipelineItemId": "<pipelineItemId>",
      "isArchived": true
    }
  }'
```
