POST
/
journey
/
task
/
update
curl --request POST \
  --url https://eu.platform.go.gbgplc.com/captain/api/journey/task/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "instanceId": "PiIuACmx8Q8R7qPnAkLAqBAT",
  "taskId": "TkoviRO58Q8R7qPnAkLAqBAT",
  "data": {
    "fieldKey1": "value1",
    "fieldKey2": "value2"
  }
}'
{
  "instanceId": "<string>",
  "taskId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
instanceId
string
required

Unique identifier for the active journey instance.

Example:

"PiIuACmx8Q8R7qPnAkLAqBAT"

taskId
string
required

Unique identifier for the task being updated.

Example:

"TkoviRO58Q8R7qPnAkLAqBAT"

data
object
required

The submitted task data. The required fields depend on the task schema.

Example:
{
  "fieldKey1": "value1",
  "fieldKey2": "value2"
}

Response

200
application/json
Task data submitted successfully.
instanceId
string

Unique identifier for the active journey instance.

taskId
string

Unique identifier for the task.