Skip to main content
PATCH
Update an AMB template

Authorizations

api_access_token
string
header
required

This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.

Path Parameters

id
integer
required

The numeric ID of the saved primitive template.

Example:

1

Body

application/json
amb_primitive_template
object
required

The template to save.

Response

Success

id
integer

The numeric ID of the template.

account_id
integer

The account the template belongs to.

user_id
integer | null

The agent who saved it.

primitive_type
enum<string>

Which Apple Messages primitive this template builds.

Available options:
rich_link,
list_picker,
time_picker,
form,
pay,
oauth,
imessage_extension,
simple_message
name
string

What agents see in the composer. Up to 100 characters.

data
object

The primitive payload, in the shape Apple's schema for that primitive expects — the same JSON the composer builds.

created_at
string

ISO-8601 timestamp.

updated_at
string

ISO-8601 timestamp.