Skip to content

Update a channel stream

PATCH
/v1/channel-streams/{id}
curl --request PATCH \
--url https://api.replifier.com/v1/channel-streams/chs_01hx0000000000000000000000 \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "waConnectionId": "example", "waTemplateName": "example", "waTemplateLang": "example", "smsConnectionId": "example", "smsBodyTemplate": "example", "suppressionPolicy": "standard", "status": "active", "pauseReason": "example", "isDefault": true }'
id
required
string
/^chs_[a-z0-9]{26}$/

Example

chs_01hx0000000000000000000000
Media typeapplication/json
object
name
string
>= 1 characters <= 120 characters /^[^\x00-\x1f\x7f]*$/
waConnectionId
string
waTemplateName
string
>= 1 characters <= 80 characters /^[^\x00-\x1f\x7f]*$/
waTemplateLang
string
>= 2 characters <= 8 characters
smsConnectionId
string
nullable
smsBodyTemplate
string
nullable >= 1 characters <= 400 characters /^[^\x00-\x1f\x7f]*$/
suppressionPolicy
string
Allowed values: standard strict
status
string
Allowed values: active paused
pauseReason
string
nullable
isDefault
boolean

Channel stream updated

Media typeapplication/json
object
id
required
string
organizationId
required
string
brandId
required
string
slug
required
string
name
required
string
waConnectionId
required
string
waTemplateName
required
string
waTemplateLang
required
string
smsConnectionId
required
string
nullable
smsBodyTemplate
required
string
nullable
category
required
string
Allowed values: transactional operational_marketing
suppressionPolicy
required
string
Allowed values: standard strict
isDefault
required
boolean
status
required
string
Allowed values: active paused
pauseReason
required
string
nullable
createdAt
required
string
updatedAt
required
string

Example

{
"category": "transactional",
"suppressionPolicy": "standard",
"status": "active"
}

Invalid data

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}