activate_rcs_template
POST
/v1/agents/{agent_id}/templates/{id}/activate
const url = 'https://example.com/v1/agents/example/templates/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/activate';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/agents/example/templates/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/activate \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” agent_id
required
string
The RCS Agent identifier (platform UUID or Google agent ID).
id
required
string format: uuid
The RCS Template ID.
Responses
Section titled “ Responses ”RCS Template activated successfully
Media type application/json
object
content
required
object
created_at
required
string format: date-time
default_traffic_type
string | null
default_ttl_seconds
integer | null format: int32
description
string | null
id
required
string format: uuid
message_type
required
string
name
required
string
rbm_agent_id
required
string format: uuid
status
required
string
updated_at
required
string format: date-time
Example
{ "message_type": "CARD", "status": "ACTIVE"}RCS Agent or Template not found