sequences
Update sequence
Update a sequence's name, steps, or exit conditions. Active sequences can be updated without pausing.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
sequenceIdstring
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.sequences.updateSequence({ path: { sequenceId: 'sequence_abc123', },});console.log(data);{
"success": true,
"sequence": {
"id": "string",
"name": "string",
"description": "string",
"status": "string",
"steps": [
{}
],
"exitOnReply": true,
"exitOnUnsubscribe": true,
"updatedAt": "2019-08-24T14:15:22Z"
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}