PUT api/Country/{index}/{rows}

Updates countries a Fellow is associated with.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
index

string

None.

rows

string

None.

Body Parameters

Fully populated BaseCollection object.

BaseCollectionOfCountry
NameDescriptionTypeAdditional information
Collection

Collection of Country

Required

ContactId

integer

Required

Pcode

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Collection": [
    {
      "Name": "sample string 1",
      "Ordinal": 1,
      "Id": 2,
      "LastUpdatedTimestamp": "2018-11-15T06:31:28.5881014+00:00"
    },
    {
      "Name": "sample string 1",
      "Ordinal": 1,
      "Id": 2,
      "LastUpdatedTimestamp": "2018-11-15T06:31:28.5881014+00:00"
    }
  ],
  "ContactId": 1,
  "Pcode": "sample string 2"
}

text/xml

Sample:
<BaseCollectionOfCountryxMFpOuYO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataLayer2.Core">
  <Collection xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataLayer2.Models">
    <d2p1:Country>
      <Id>2</Id>
      <LastUpdatedTimestamp>2018-11-15T06:31:28.5881014+00:00</LastUpdatedTimestamp>
      <Ordinal>1</Ordinal>
      <d2p1:Name>sample string 1</d2p1:Name>
    </d2p1:Country>
    <d2p1:Country>
      <Id>2</Id>
      <LastUpdatedTimestamp>2018-11-15T06:31:28.5881014+00:00</LastUpdatedTimestamp>
      <Ordinal>1</Ordinal>
      <d2p1:Name>sample string 1</d2p1:Name>
    </d2p1:Country>
  </Collection>
  <ContactId>1</ContactId>
  <Pcode>sample string 2</Pcode>
</BaseCollectionOfCountryxMFpOuYO>

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.