## PUT /v1/account/settings

Set the most one session may spend, in millicents, up to the platform ceiling. `null` clears it. Only a GitHub administrator can set it, and a session token cannot.

Required permissions: write:defaults.
API key: Requires a CLI user token belonging to an account administrator.
CLI user token: Requires an account administrator.
Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
Higher permission levels include lower levels: read < write < delete.

### Request

```text
{
  "budget_ceiling": {
    "session": int
  }
}
```

### Response

```text
{
  "budget_ceiling": {
    "session": int
  }
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.account.settings.set()
print(result)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const result = await client.account.settings.set();
console.log(result);
```

### cURL

```bash
curl -X PUT "https://api.ellipsis.dev/v1/account/settings" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Request schema

```json
{
  "properties": {
    "budget_ceiling": {
      "properties": {
        "session": {
          "anyOf": [
            {
              "multipleOf": 1000,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

### Response schema

```json
{
  "properties": {
    "budget_ceiling": {
      "properties": {
        "session": {
          "anyOf": [
            {
              "multipleOf": 1000,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```
