# Update

`PATCH /api/2.0/vector-search/endpoints/{name}/budget-policy`

Update the budget policy of an endpoint

API scopes: vector-search

## Path parameters

- `name` (string, optional)
  Name of the AI Search endpoint

## Request body

- `budget_policy_id` (string, optional)
  The budget policy id to be applied
  Example: `8b0444ff-8b60-48b0-9d31-e391f6126e0f`

## Returns

- `budget_policy_id` (string, optional)
- `effective_budget_policy_id` (string, optional)
  The budget policy applied to the AI Search endpoint.

## Response

```json
{
  "budget_policy_id": "string",
  "effective_budget_policy_id": "string"
}
```

