---
title: "Update scenario"
method: PATCH
path: "/actions/{sid}"
tags: ["Actions"]
---

# Update scenario

`PATCH /actions/{sid}`

Update a Callr Actions scenario. You may send a partial object.

## Path parameters

- `sid` string, required — Short ID

## Request body

- ActionBase
  - `name` string
  - `script` string
  - `format` string

## Response `200`

The updated actions scenario

- Action
  - `name` string, required
  - `script` string, required
  - `format` string, required
  - `sid` string, required — Short ID
  - `numbers` NumberAssigned[], required
    - `e164` string, required — A phone number in ITU-T E.164 format https://en.wikipedia.org/wiki/E.164, prefixed by "+"
    - `class` 'gold' | 'classic', required — Number class. "gold" is for premium (rare) numbers, "classic" is for regular numbers.
    - `type` 'geographic' | 'mobile' | 'non-geographic' | 'personal' | 'platform' | 'sharedrevenue' | 'sms-only' | 'special' | 'tollfree' | 'verified', required — Type of number
    - `assigned` string, date-time, required — RFC 3339, section 5.6
    - `country` string, required — ISO 3166-1 alpha-2 country code
  - `version` string, required
  - `created` string, date-time, required — RFC 3339, section 5.6
  - `updated` string, date-time, required — RFC 3339, section 5.6

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Resource Not Found
- `405` — Method Not Allowed
- `429` — Too Many Requests (rate limit exceeded)
- `500` — Internal Server Error

---

[API](https://skmtc.net/callr/apis/callr-rest-api-v2-0.md) · [All operations](https://skmtc.net/callr/apis/callr-rest-api-v2-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/callr/callr-rest-api-v2-0/versions/76d36d004a8f/schema)
