POST api/Position

Sends the DS administrator an email to create a position in donor strategy.

Request Information

URI Parameters

None.

Body Parameters

Contains a fully populated position object, Id or Pcode is neccessary

Position
NameDescriptionTypeAdditional information
Name

string

None.

CompanyId

integer

None.

Company

string

None.

TopLevelId

integer

None.

TopLevelName

string

None.

DisplayVisibility

string

None.

IsMainOrganisation

boolean

None.

ContactId

integer

None.

Pcode

string

None.

Ordinal

integer

None.

Id

integer

None.

LastUpdatedTimestamp

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "CompanyId": 1,
  "Company": "sample string 2",
  "TopLevelId": 1,
  "TopLevelName": "sample string 3",
  "DisplayVisibility": "sample string 4",
  "IsMainOrganisation": true,
  "ContactId": 6,
  "Pcode": "sample string 7",
  "Ordinal": 1,
  "Id": 8,
  "LastUpdatedTimestamp": "2018-11-15T06:22:54.9991439+00:00"
}

text/xml

Sample:
<Position xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataLayer2.Models">
  <Id xmlns="http://schemas.datacontract.org/2004/07/DataLayer2.Core">8</Id>
  <LastUpdatedTimestamp xmlns="http://schemas.datacontract.org/2004/07/DataLayer2.Core">2018-11-15T06:22:54.9991439+00:00</LastUpdatedTimestamp>
  <Ordinal xmlns="http://schemas.datacontract.org/2004/07/DataLayer2.Core">1</Ordinal>
  <ContactId xmlns="http://schemas.datacontract.org/2004/07/DataLayer2.Core">6</ContactId>
  <Pcode xmlns="http://schemas.datacontract.org/2004/07/DataLayer2.Core">sample string 7</Pcode>
  <Company>sample string 2</Company>
  <CompanyId>1</CompanyId>
  <DisplayVisibility>sample string 4</DisplayVisibility>
  <IsMainOrganisation>true</IsMainOrganisation>
  <Name>sample string 1</Name>
  <TopLevelId>1</TopLevelId>
  <TopLevelName>sample string 3</TopLevelName>
</Position>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.