POST api/ChangeSourceId

Changes the mode of sale of a Tessitura session.

Request Information

URI Parameters

None.

Body Parameters

ChangeSourceIdRequest
NameDescriptionTypeAdditional information
SessionKey

The existing authenticated Tessitura session key.

string

Required

NewSourceId

The new source id for the session.

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "SessionKey": "sample string 1",
  "NewSourceId": 2
}

application/xml, text/xml

Sample:
<ChangeSourceIdRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Session">
  <NewSourceId>2</NewSourceId>
  <SessionKey>sample string 1</SessionKey>
</ChangeSourceIdRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ChangeSourceIdRequest'.

Response Information

Resource Description

ChangeModeOfSaleResult

ApiSuccessOfChangeSourceIdResult
NameDescriptionTypeAdditional information
Success

boolean
Data

ChangeSourceIdResult

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "NewSourceId": 1
  }
}

application/xml, text/xml

Sample:
<ApiSuccessOfChangeSourceIdResult5WS87vwN xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Api">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Session">
    <d2p1:NewSourceId>1</d2p1:NewSourceId>
  </Data>
</ApiSuccessOfChangeSourceIdResult5WS87vwN>