POST Journeys/SaveJourneys

Saves journeys for a mobile user.


Parameters

NameDescriptionAdditional information
journeys
A list of journeys to save.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
[
  null,
  {
    "JourneyId": 1,
    "SubcatId": 2,
    "CreatedBy": 3,
    "JourneyJson": "sample string 4",
    "JourneyDate": "1/1/0001",
    "StartTime": "12:00 AM",
    "JourneyStartTime": "0001-01-01T00:00:00",
    "EndTime": "12:00 AM",
    "Active": false
  },
  {
    "JourneyId": 1,
    "SubcatId": 2,
    "CreatedBy": 3,
    "JourneyJson": "sample string 4",
    "JourneyDate": "1/1/0001",
    "StartTime": "12:00 AM",
    "JourneyStartTime": "0001-01-01T00:00:00",
    "EndTime": "12:00 AM",
    "Active": false
  }
]

application/xml, text/xml

Sample:
<ArrayOfMobileJourney xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementLibrary.Mobile">
  <MobileJourney i:nil="true" />
  <MobileJourney>
    <Active>false</Active>
    <CreatedBy>3</CreatedBy>
    <EndTime>12:00 AM</EndTime>
    <JourneyDate>1/1/0001</JourneyDate>
    <JourneyId>1</JourneyId>
    <JourneyJson>sample string 4</JourneyJson>
    <JourneyStartTime>0001-01-01T00:00:00</JourneyStartTime>
    <StartTime>12:00 AM</StartTime>
    <SubcatId>2</SubcatId>
  </MobileJourney>
  <MobileJourney>
    <Active>false</Active>
    <CreatedBy>3</CreatedBy>
    <EndTime>12:00 AM</EndTime>
    <JourneyDate>1/1/0001</JourneyDate>
    <JourneyId>1</JourneyId>
    <JourneyJson>sample string 4</JourneyJson>
    <JourneyStartTime>0001-01-01T00:00:00</JourneyStartTime>
    <StartTime>12:00 AM</StartTime>
    <SubcatId>2</SubcatId>
  </MobileJourney>
</ArrayOfMobileJourney>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response body formats

A detailing success or failure.

application/json, text/json

Sample:
{
  "List": {
    "sample string 1": 2,
    "sample string 3": 4,
    "sample string 5": 6
  },
  "Message": "sample string 1",
  "ReturnCode": 0,
  "FunctionName": "sample string 2"
}

application/xml, text/xml

Sample:
<SaveJourneyResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementLibrary.Mobile">
  <FunctionName>sample string 2</FunctionName>
  <Message>sample string 1</Message>
  <ReturnCode>Success</ReturnCode>
  <List xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringint>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>2</d2p1:Value>
    </d2p1:KeyValueOfstringint>
    <d2p1:KeyValueOfstringint>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>4</d2p1:Value>
    </d2p1:KeyValueOfstringint>
    <d2p1:KeyValueOfstringint>
      <d2p1:Key>sample string 5</d2p1:Key>
      <d2p1:Value>6</d2p1:Value>
    </d2p1:KeyValueOfstringint>
  </List>
</SaveJourneyResult>
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body