Pular para o conteúdo
PUT
/Journey/{id}
curl --request PUT \
--url https://api.chatfood.app/Journey/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data '{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "status": 1, "mode": 1, "repeatFromStart": true, "cycleGapHours": 1, "entryDelayHours": 1, "provider": 1, "pageIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "pages": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z", "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "providerId": 1, "referenceId": "example", "name": "example", "createdBy": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "categoryId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "categoryName": "example", "categoryVariableGroupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "timeZone": "example", "language": "example", "currency": "example", "countryCode": "example", "appId": "example", "metaAppId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "metaAppName": "example", "status": 0, "accountName": "example", "lastConnectedAt": "2026-04-15T12:00:00Z", "connectedByName": "example", "connectedProfiles": [ { "id": "example", "name": "example", "hasActiveToken": true } ], "openIssueCount": 1, "loggedIssueCount24h": 1, "leadCount": 1, "leadsToday": 1, "leads7d": 1, "profileCounts": { "total": 1, "active": 1, "blocked": 1, "deleted": 1 }, "connectedApps": [ { "metaAppId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "appId": "example", "channel": 0, "status": 0, "connectedAt": "2026-04-15T12:00:00Z", "connectedByName": "example", "connectedById": "example" } ], "urls": [ { "host": "example", "url": "example", "source": 0, "label": "example", "weight": 1, "health": 0, "healthChangedAt": "2026-04-15T12:00:00Z" } ], "urlCount": 1, "integrityStatus": "example", "integrityStatusChangedAt": "2026-04-15T12:00:00Z", "integrityViolationTypes": [ "example" ], "schemas": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "channelTrigger": 0, "isKeywordOnly": true, "updatedAt": "2026-04-15T12:00:00Z" } ], "issues": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z", "pageId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "tokenId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "metaAppId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "metaAppName": "example", "scope": "example", "type": 0, "status": 0, "severity": 1, "errorCode": 1, "errorSubcode": 1, "message": "example", "occurrenceCount": 1, "firstOccurrenceAt": "2026-04-15T12:00:00Z", "lastOccurrenceAt": "2026-04-15T12:00:00Z", "resolvedAt": "2026-04-15T12:00:00Z", "resolvedBy": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "resolutionNote": "example", "connectionEpoch": 1, "occurredAt": "2026-04-15T12:00:00Z", "isStale": true, "isCurrentConnection": true } ], "pageToken": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z", "pageId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "accessToken": "example", "status": 0, "channel": 0, "metaAppId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ], "variables": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z", "pageId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "key": "example", "value": "example", "dynamicValue": "example", "type": 0 } ], "category": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z", "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "createdBy": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } } ], "categoryIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "dynamicUpdate": true, "categories": [ "example" ], "totalPages": 1, "skippedPageIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "steps": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "index": 1, "dayOffset": 1, "timeOfDay": "example", "schemaIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "selectionMode": 1, "schemaWeights": [ 1 ], "broadcastType": 1, "messageTag": 1, "notificationType": 1 } ], "deliveryIntelligence": { "enabled": true, "unreadThreshold": 1, "reactivationDays": 1 }, "anchorDate": "2026-04-15T12:00:00Z", "currentStepIndex": 1, "loopCount": 1, "version": 1, "createdAt": "2026-04-15T12:00:00Z", "modifiedAt": "2026-04-15T12:00:00Z", "createdByUser": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "date": "2026-04-15T12:00:00Z" }, "updatedByUser": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "date": "2026-04-15T12:00:00Z" } }'
id
required
string format: uuid
object
id
string format: uuid
name
string
nullable
status
integer format: int32
Allowed values: 1 2 3 4 5
mode
integer format: int32
Allowed values: 1 2 3
repeatFromStart
boolean
cycleGapHours
integer format: int32
nullable
entryDelayHours
integer format: int32
nullable
provider
integer format: int32
Allowed values: 1 2 3
pageIds
Array<string>
nullable
pages
Array<object>
nullable
object
id
string format: uuid
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
accountId
string format: uuid
providerId
integer format: int32
Allowed values: 1 2 3
referenceId
string
nullable
name
string
nullable
createdBy
string format: uuid
categoryId
string format: uuid
nullable
categoryName
string
nullable
categoryVariableGroupId
string format: uuid
nullable
timeZone
string
nullable
language
string
nullable
currency
string
nullable
countryCode
string
nullable
appId
string
nullable
metaAppId
string format: uuid
nullable
metaAppName
string
nullable
status
integer format: int32
Allowed values: 0 1 2 3 -1
accountName
string
nullable
lastConnectedAt
string format: date-time
nullable
connectedByName
string
nullable
connectedProfiles
Array<object>
nullable
object
id
string
nullable
name
string
nullable
hasActiveToken
boolean
openIssueCount
integer format: int32
loggedIssueCount24h
integer format: int32
leadCount
integer format: int64
leadsToday
integer format: int64
leads7d
integer format: int64
profileCounts
object
total
integer format: int64
active
integer format: int64
blocked
integer format: int64
deleted
integer format: int64
connectedApps
Array<object>
nullable
object
metaAppId
string format: uuid
name
string
nullable
appId
string
nullable
channel
integer format: int32
Allowed values: 0 1 2 3
status
integer format: int32
Allowed values: 0 1 -3 -2 -1
connectedAt
string format: date-time
connectedByName
string
nullable
connectedById
string
nullable
urls
Array<object>
nullable
object
host
string
nullable
url
string
nullable
source
integer format: int32
Allowed values: 0 1
label
string
nullable
weight
integer format: int32
nullable
health
integer format: int32
Allowed values: 0 1 2 3 4
healthChangedAt
string format: date-time
nullable
urlCount
integer format: int32
integrityStatus
string
nullable
integrityStatusChangedAt
string format: date-time
nullable
integrityViolationTypes
Array<string>
nullable
schemas
Array<object>
nullable
object
id
string format: uuid
name
string
nullable
channelTrigger
integer format: int32
Allowed values: 0 1 2 3 4 5 -1
isKeywordOnly
boolean
updatedAt
string format: date-time
nullable
issues
Array<object>
nullable
object
id
string format: uuid
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
pageId
string format: uuid
tokenId
string format: uuid
nullable
metaAppId
string format: uuid
nullable
metaAppName
string
nullable
scope
string
nullable
type
integer format: int32
Allowed values: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
status
integer format: int32
Allowed values: 0 1 2 3
severity
integer format: int32
Allowed values: 1 2
errorCode
integer format: int32
nullable
errorSubcode
integer format: int32
nullable
message
string
nullable
occurrenceCount
integer format: int32
firstOccurrenceAt
string format: date-time
lastOccurrenceAt
string format: date-time
resolvedAt
string format: date-time
nullable
resolvedBy
string format: uuid
nullable
resolutionNote
string
nullable
connectionEpoch
integer format: int32
nullable
occurredAt
string format: date-time
nullable
isStale
boolean
isCurrentConnection
boolean
pageToken
Array<object>
nullable
object
id
string format: uuid
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
pageId
string format: uuid
accessToken
string
nullable
status
integer format: int32
Allowed values: 0 1 -3 -2 -1
channel
integer format: int32
Allowed values: 0 1 2 3
metaAppId
string format: uuid
nullable
variables
Array<object>
nullable
object
id
string format: uuid
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
pageId
string format: uuid
key
string
nullable
value
string
nullable
dynamicValue
string
nullable
type
integer format: int32
Allowed values: 0 1 2
category
object
id
string format: uuid
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
accountId
string format: uuid
name
string
nullable
createdBy
string format: uuid
categoryIds
Array<string>
nullable
dynamicUpdate
boolean
nullable
categories
Array<string>
nullable
totalPages
integer format: int32
skippedPageIds
Array<string>
nullable
steps
Array<object>
nullable
object
id
string format: uuid
index
integer format: int32
dayOffset
integer format: int32
timeOfDay
string
nullable
schemaIds
Array<string>
nullable
selectionMode
integer format: int32
Allowed values: 1 2
schemaWeights
Array<integer>
nullable
broadcastType
integer format: int32
Allowed values: 1 2 3 4 5 6
messageTag
integer format: int32
Allowed values: 1 2 3 4 5 6
notificationType
integer format: int32
Allowed values: 1 2 3
deliveryIntelligence
object
enabled
boolean
unreadThreshold
integer format: int32
reactivationDays
integer format: int32
anchorDate
string format: date-time
nullable
currentStepIndex
integer format: int32
loopCount
integer format: int32
version
integer format: int32
createdAt
string format: date-time
modifiedAt
string format: date-time
createdByUser
object
id
string format: uuid
name
string
nullable
date
string format: date-time
updatedByUser
object
id
string format: uuid
name
string
nullable
date
string format: date-time

OK