# createFilterFolder

Create a saved-filter folder (returns id). `scope` is the filters' type (PROPERTY, CONTACT, DEAL); `personal: true` makes it private, else it and filters filed in it are shared; with `parentId` it takes the parent's visibility instead. Reuse a listFilterFolders row only if name, parentId and isPrivate all match.

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

## Variables

- `scope`: `FolderScope!` (required, one of `PROPERTY`, `CONTACT`, `PIPELINE_ITEM`, `DEAL`, `OWNER`, `POST`, `ENTITY`, `PERSON`, `USER`, `ORGANIZATION`, `LIBRARY`, `WORKFLOW`, `FORM`). The surface a folder appears on. The first nine are 1:1 with `FilterType`: a folder there holds that surface's saved filters, and on PROPERTY / CONTACT its lists as well. Scope is the SURFACE, not the item kind.
- `name`: `String!` (required)
- `parentId`: `ID`
- `personal`: `Boolean`

## Response (data, an example)

```json
{
  "folderMutation": {
    "createFolder": {
      "id": "<ID>",
      "name": "…",
      "parentId": "<ID>",
      "ownerUserId": "<ID>"
    }
  }
}
```

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