Journeys
Rename a journey (Preview)
Preview · Available to selected organizations. Renames a journey. Use this endpoint to rename a journey through the Samva email API.
PATCH
Renames a journey.
apiKeyheader
x-api-key<token>id*stringMatch
^jrny_[0-9a-hjkmnp-tv-z]{16,24}$application/json- body
name*JourneyNameMatch
^\S[\s\S]*\S$|^\S$|^$Length
1 <= length <= 200Journey
application/json- response
id*JourneyIdMatch
^jrny_[0-9a-hjkmnp-tv-z]{16,24}$name*stringstatus*JourneyStatusValue in
"draft""active""paused""archived"revision*stringdraft*publishedVersion*|nullpublishedAt*string|nullcreatedAt*stringupdatedAt*stringimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.journeys.update({ "id": "example", "name": "example"});Example Response
{ "id": "string", "name": "string", "status": "draft", "revision": "string", "draft": { "trigger": { "type": "event", "eventName": "string" }, "rootNodeId": "string", "nodes": { "property1": { "type": "send_email", "config": { "template": "string", "senderId": "string", "templateData": { "property1": "string", "property2": "string" } }, "next": [ { "nodeId": "string" } ] }, "property2": { "type": "send_email", "config": { "template": "string", "senderId": "string", "templateData": { "property1": "string", "property2": "string" } }, "next": [ { "nodeId": "string" } ] } }, "goal": { "eventName": "string" }, "reentry": true }, "publishedVersion": -9007199254740991, "publishedAt": "string", "createdAt": "string", "updatedAt": "string"}Related documentation
Get journey run counts (Preview)
Preview · Available to selected organizations. Counts one published version's runs by status, and per node the live runs there now and the runs that have entered it. Defaults to the newest published version.
Continue an agent on Standard (Preview)
Preview · Available to selected organizations. Publishes the live version again with its model set to standard, as the next immutable version, then removes the monthly spend cap.