# Set what the project means to spend on one ad platform in one month

`PUT /marketing/budgets` · Rivier · workspace

Set what the project means to spend on one ad platform in one month. The amount is in whole currency units. It only sets the line the pacing check measures against; it never changes anything on the platform.

- Scope: workspace:write
- Mcp: rivier_marketing_set_budget
- Graphql: Mutation.workspaceMarketingBudget
- Sdk: workspace.marketing.budget
- Cli: workspace marketing budget

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "maxLength": 40
    },
    "month": {
      "type": "string",
      "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
    },
    "amount": {
      "type": "number",
      "minimum": 0,
      "maximum": 100000000
    },
    "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$"
    }
  },
  "required": [
    "platform",
    "month",
    "amount",
    "currency"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X PUT 'https://api.rivier.ai/marketing/budgets' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "platform": "string",
  "month": "string",
  "amount": 0,
  "currency": "string"
}'
```
