Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

scheduled-deployments changedmanaged-agents/scheduled-deployments

Recorded here
Lines+131added
Lines−15removed
From line 272 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits18to this page, all time

The whole hunk

from line 272, old and new numbered
/
lines
from line 272
272272 
273273The following example sets a budget on an existing deployment:
274274 
275```bash cURL
276curl --fail-with-body -sS "https://api.anthropic.com/v1/deployments/$DEPLOYMENT_ID?beta=true" \
277 -H "x-api-key: $ANTHROPIC_API_KEY" \
278 -H "anthropic-version: 2023-06-01" \
279 -H "anthropic-beta: managed-agents-2026-04-01" \
280 -H "content-type: application/json" \
281 -d @- <<'EOF'
282{
283 "budget": {
284 "type": "limit",
285 "max_list_cost": {"amount": "2000", "currency": "USD"}
275<CodeGroup defaultLanguage="CLI">
276 ```bash cURL
277 curl --fail-with-body -sS "https://api.anthropic.com/v1/deployments/$DEPLOYMENT_ID?beta=true" \
278 -H "x-api-key: $ANTHROPIC_API_KEY" \
279 -H "anthropic-version: 2023-06-01" \
280 -H "anthropic-beta: managed-agents-2026-04-01" \
281 -H "content-type: application/json" \
282 -d @- <<'EOF'
283 {
284 "budget": {
285 "type": "limit",
286 "max_list_cost": {"amount": "2000", "currency": "USD"}
287 }
286288 }
287}
288EOF
289```
289 EOF
290 ```
291 
292 <CodeGroupItem>
293 ```bash CLI
294 ant apply deployment.md
295 ```
296 
297 <File filename="deployment.md">
298 ```markdown
299 ---
300 name: Weekly compliance scan
301 agent: agent_011CYm1BLqPXpQRk5khsSXrs
302 environment_id: env_01595EKxaaTTGwwY3kyXdtbs
303 schedule:
304 type: cron
305 expression: "0 20 * * 5"
306 timezone: America/New_York
307 budget:
308 type: limit
309 max_list_cost:
310 amount: "2000"
311 currency: USD
312 ---
313 
314 Run the weekly compliance scan.
315 ```
316 </File>
317 </CodeGroupItem>
318 
319 ```python Python
320 updated_deployment = client.beta.deployments.update(
321 deployment.id,
322 budget={
323 "type": "limit",
324 "max_list_cost": {"amount": "2000", "currency": "USD"},
325 },
326 )
327 print(updated_deployment.budget.max_list_cost.amount) # 2000
328 ```
329 
330 ```typescript TypeScript
331 const updatedDeployment = await client.beta.deployments.update(deployment.id, {
332 budget: {
333 type: "limit",
334 max_list_cost: { amount: "2000", currency: "USD" },
335 },
336 });
337 console.log(updatedDeployment.budget?.max_list_cost.amount); // 2000
338 ```
339 
340 ```csharp C#
341 var updatedDeployment = await client.Beta.Deployments.Update(deployment.ID, new()
342 {
343 Budget = new()
344 {
345 Type = BetaManagedAgentsBudgetLimitType.Limit,
346 MaxListCost = new() { Amount = "2000", Currency = BetaCurrency.Usd },
347 },
348 });
349 Console.WriteLine(updatedDeployment.Budget?.MaxListCost.Amount); // 2000
350 ```
351 
352 ```go Go
353 updatedDeployment, err := client.Beta.Deployments.Update(ctx, deployment.ID, anthropic.BetaDeploymentUpdateParams{
354 Budget: anthropic.BetaManagedAgentsBudgetLimitParam{
355 Type: anthropic.BetaManagedAgentsBudgetLimitTypeLimit,
356 MaxListCost: anthropic.BetaMonetaryAmountParam{
357 Amount: "2000",
358 Currency: anthropic.BetaCurrencyUsd,
359 },
360 },
361 })
362 if err != nil {
363 panic(err)
364 }
365 fmt.Println(updatedDeployment.Budget.MaxListCost.Amount) // 2000
366 ```
367 
368 ```java Java
369 var updatedDeployment = client.beta().deployments().update(
370 deployment.id(),
371 DeploymentUpdateParams.builder()
372 .budget(BetaManagedAgentsBudgetLimit.builder()
373 .type(BetaManagedAgentsBudgetLimit.Type.LIMIT)
374 .maxListCost(BetaMonetaryAmount.builder()
375 .amount("2000")
376 .currency(BetaCurrency.USD)
377 .build())
378 .build())
379 .build()
380 );
381 IO.println(updatedDeployment.budget().orElseThrow().maxListCost().amount()); // 2000
382 ```
383 
384 ```php PHP
385 $updatedDeployment = $client->beta->deployments->update(
386 $deployment->id,
387 budget: [
388 'type' => 'limit',
389 'max_list_cost' => ['amount' => '2000', 'currency' => 'USD'],
390 ],
391 );
392 echo "{$updatedDeployment->budget->maxListCost->amount}\n"; // 2000
393 ```
394 
395 ```ruby Ruby
396 updated_deployment = client.beta.deployments.update(
397 deployment.id,
398 budget: {
399 type: "limit",
400 max_list_cost: {amount: "2000", currency: "USD"}
401 }
402 )
403 puts updated_deployment.budget.max_list_cost.amount # 2000
404 ```
405</CodeGroup>
290406 
291407## Deployment runs
292408 
Feedback