PUT
/
api
/
v1
/
channels
/
{channel_id}
/
targets
/
{target_id}

Authorizations

Syllable-API-Key
string
header
required

Path Parameters

channel_id
integer
required
target_id
integer
required

Body

application/json
agent_id
integer
required

The ID of the agent associated with the channel target

channel_id
integer
required

The ID of the channel associated with the channel target

target
string
required

The name of the channel target (must correspond to an organization-level target)

target_mode
enum<string>
required

The mode of the channel target (must match one of the supported modes of the associated channel)

Available options:
voice,
chat,
sms,
email
id
integer
required

The ID of the channel target

fallback_target
string | null

The fallback for the channel target (currently only supported for "voice" mode)

is_test
boolean
default:
false

Whether the channel target is intended for testing. If true, any sessions created through this target will be labeled as test.

Response

200
application/json

A channel target links a channel to an agent, allowing users to communicate with the agent through that channel.

agent_id
integer
required

The ID of the agent associated with the channel target

channel_id
integer
required

The ID of the channel associated with the channel target

target
string
required

The name of the channel target (must correspond to an organization-level target)

target_mode
enum<string>
required

The mode of the channel target (must match one of the supported modes of the associated channel)

Available options:
voice,
chat,
sms,
email
id
integer
required

The ID of the channel target

channel_name
string
required

The name of the channel associated with the channel target

updated_at
string
required

Timestamp of the most recent update to the channel target

last_updated_by
string
required

Email of the user who last updated the channel target

fallback_target
string | null

The fallback for the channel target (currently only supported for "voice" mode)

is_test
boolean
default:
false

Whether the channel target is intended for testing. If true, any sessions created through this target will be labeled as test.

agent
object | null

Definition of the agent for the channel target