Update latest Journey Application by External Application ID
Changed onThis endpoint allows you to update the latest (i.e. most recently created) Application associated with the supplied External Application ID. If the journeyToken query parameter is provided, the retrieved Application will be the latest Application associated with that particular Journey and the External Application ID. The use cases for the endpoint are elaborated in the regular "Update Journey Application" endpoint.
Request
- Base URLhttps://sandbox.alloy.co/v1
- Auth
- OAuth 2Client credentialsToken URL/oauth/bearer
- or HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
This endpoint returns a synchronous response by default. If you would like to override this behavior and get an asynchronous response back immediately, send the header alloy-journey-override-sync as true.
Request body
Example request
{
"entities": [
{
"external_entity_id": "my_system_entity_id_123",
"data": {
"name_first": "John",
"name_middle": "Franklin",
"name_last": "Doe",
"birth_date": "1990-01-25",
"email_address": "john@alloy.com",
"gender": "male",
"ip_address_v4": "42.206.213.70",
"addresses": [
{
"type": "primary",
"line_1": "41 E. 11th",
"line_2": "2nd floor",
"city": "New York",
"state": "NY",
"country_code": "US"
}
],
"meta": {
"user_type": "vip"
}
},
"entity_type": "person",
"branch_name": "my_person_branch_name",
"entity_token": "P-1GoQALm40nPQSp7UVTJS"
}
]
}Response
Success
Example response
{
"journey_application_token": "JA-LS0GHKjDNhY6dGlvYxx",
"_links": {
"self": {
"href": "/v1/journeys/J-Kq8jlFcA4veeHCtt823h/applications/JA-LS0GHKjDNhY6dGlvYxxH"
}
}
}Changes
- breaking
removed
subschema #2: Updating data for an existing person entitysubschema #3: Associating documents for an existing person entityfrom the/request propertyanyOflist - info
added the new optional
queryrequest parameterfullDatato all path's operations - info
added the new optional
headerrequest parameteralloy-journey-override-sync - info
added to the
/request propertyanyOflist - info
added to the
response propertyallOflist for the response status - info
removed from the
response propertyallOflist for the response status
- breaking