# Change the partner's settings

> Sets `allow_account_spend`. When it is `true`, workspaces on the partner's Free plan may draw the partner's account credits (after their free and given credits).

Source: https://docs.spicrawl.com/api-reference/partner/partner-settings-patch

## PATCH /v1/partner/settings

Operation ID: `partnerSettingsPatch`. API key scope: `partner`.

Sets `allow_account_spend`. When it is `true`, workspaces on the partner's Free plan may draw the partner's
account credits (after their free and given credits). Workspaces on a paid plan always may, so the setting does
not affect them. Takes effect within about 5 seconds.

### Example

```bash
curl -X PATCH "https://api.spicrawl.com/v1/partner/settings" \
  -H "Authorization: Bearer $SPICRAWL_API_KEY"
```

### Request body

`application/json`, required.

| Field | Type | Required | Description |
|---|---|---|---|
| `allow_account_spend` | boolean | yes |  |

### Responses

#### 200

The setting as it now stands.

`application/json`.

| Field | Type | Required | Description |
|---|---|---|---|
| `allow_account_spend` | boolean | yes |  |

#### 400

The request is invalid. Not retryable; fix the request using `code` and `diagnostics.hint`.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 401

Missing, invalid, revoked or expired key. Not retryable with the same key.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 403

The key lacks the scope this route requires (`ERR::AUTH::INSUFFICIENT_SCOPE`), or the action is not permitted.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 500

Internal error. Retryable when `retryable` is true.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

Full OpenAPI spec: https://docs.spicrawl.com/openapi.yaml
