Skip to content

Update a stream: name, connection, sender, pause or resume, default stream, stricter policy

PATCH
/v1/tx-streams/{stream}
curl --request PATCH \
--url https://api.replifier.com/v1/tx-streams/txs_01hx0000000000000000000000 \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "connectionId": "example", "fromEmail": "hello@example.com", "fromName": "example", "replyTo": "hello@example.com", "suppressionPolicy": "strict", "status": "active", "isDefault": true }'
stream
required
string
/^txs_[a-z0-9]{26}$/

Example

txs_01hx0000000000000000000000
Media typeapplication/json
object
name
string
>= 1 characters <= 120 characters /^[^\x00-\x1f\x7f]*$/
connectionId
string
<= 64 characters
fromEmail
string format: email
<= 254 characters
fromName
string
nullable <= 120 characters /^[^\x00-\x1f\x7f]*$/
replyTo
string format: email
nullable <= 254 characters
suppressionPolicy

Can only be tightened: the standard policy cannot be restored.

string
Allowed values: strict
status
string
Allowed values: active paused
isDefault
boolean

Stream

Media typeapplication/json
object
id
required
string
brandId
required
string
slug
required
string
name
required
string
connectionId
required
string
category
required
string
Allowed values: transactional operational_marketing
suppressionPolicy
required
string
Allowed values: standard strict
fromEmail
required
string
fromName
required
string
nullable
replyTo
required
string
nullable
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"
}
}

Conflict

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"
}
}