PUT
/
api
/
v1
/
admin
/
simulation
/
channel-templates
/
{template_id}
Update Channel Template
curl --request PUT \
  --url https://api.jobsim.work/api/v1/admin/simulation/channel-templates/{template_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "channel_name": "<string>",
  "scenario_name": "<string>",
  "message_templates": [
    {
      "sender_character_id": "<string>",
      "content": "<string>",
      "offset_hours": 123,
      "thread_replies": [
        {
          "sender_character_id": "<string>",
          "content": "<string>",
          "offset_minutes": 123,
          "metadata": {}
        }
      ],
      "metadata": {}
    }
  ],
  "is_active": true,
  "apply_to_existing_users": true
}
'
{
  "channel_name": "<string>",
  "_id": "<string>",
  "organization_id": "<string>",
  "scenario_name": "default",
  "message_templates": [
    {
      "sender_character_id": "<string>",
      "content": "<string>",
      "offset_hours": 123,
      "thread_replies": [
        {
          "sender_character_id": "<string>",
          "content": "<string>",
          "offset_minutes": 123,
          "metadata": {}
        }
      ],
      "metadata": {}
    }
  ],
  "is_active": true,
  "apply_to_existing_users": false,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

template_id
string
required

Query Parameters

organization_id
string | null

Body

application/json

Request to update a channel seed template

channel_name
string | null
scenario_name
string | null
message_templates
MessageTemplate · object[] | null
is_active
boolean | null
apply_to_existing_users
boolean | null

Response

Successful Response

Template for seeding messages into channels. Organization-specific templates override global defaults. When a new user joins, templates are converted to actual Message documents.

channel_name
string
required
_id
string | null
organization_id
string | null
scenario_name
string
default:default
message_templates
MessageTemplate · object[]
is_active
boolean
default:true
apply_to_existing_users
boolean
default:false
created_at
string<date-time>
updated_at
string<date-time>