PUT api/vendor

Request Information

URI Parameters

None.

Body Parameters

VendorModel
NameDescriptionTypeAdditional information
VendorId

integer

None.

VendorCompanyName

string

None.

CountryId

integer

None.

CountryName

string

None.

TypeOfVendorId

integer

None.

TypeOfVendor

string

None.

SpecializedHealthcareProvider

string

None.

SourceNameId

integer

None.

CorporateCompanyName

string

None.

HeadquarterCountryId

integer

None.

HeadquarterCountryName

string

None.

IsGlobal

boolean

None.

Active

boolean

None.

Status

boolean

None.

InternationalNetworks

Collection of CatalogValueModel

None.

VendorRoles

Collection of CatalogValueModel

None.

CorporateId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "VendorId": 1,
  "VendorCompanyName": "sample string 2",
  "CountryId": 3,
  "CountryName": "sample string 4",
  "TypeOfVendorId": 5,
  "TypeOfVendor": "sample string 6",
  "SpecializedHealthcareProvider": "sample string 7",
  "SourceNameId": 8,
  "CorporateCompanyName": "sample string 9",
  "HeadquarterCountryId": 10,
  "HeadquarterCountryName": "sample string 11",
  "IsGlobal": true,
  "Active": true,
  "Status": true,
  "InternationalNetworks": [
    {
      "CatalogValueId": 1,
      "CatalogId": 2,
      "Catalog": "sample string 3",
      "Description": "sample string 4"
    },
    {
      "CatalogValueId": 1,
      "CatalogId": 2,
      "Catalog": "sample string 3",
      "Description": "sample string 4"
    }
  ],
  "VendorRoles": [
    {
      "CatalogValueId": 1,
      "CatalogId": 2,
      "Catalog": "sample string 3",
      "Description": "sample string 4"
    },
    {
      "CatalogValueId": 1,
      "CatalogId": 2,
      "Catalog": "sample string 3",
      "Description": "sample string 4"
    }
  ],
  "CorporateId": 15
}

application/xml, text/xml

Sample:
<VendorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALTAMBS.Business.Entities.Models">
  <Active>true</Active>
  <CorporateCompanyName>sample string 9</CorporateCompanyName>
  <CorporateId>15</CorporateId>
  <CountryId>3</CountryId>
  <CountryName>sample string 4</CountryName>
  <HeadquarterCountryId>10</HeadquarterCountryId>
  <HeadquarterCountryName>sample string 11</HeadquarterCountryName>
  <InternationalNetworks>
    <CatalogValueModel>
      <Catalog>sample string 3</Catalog>
      <CatalogId>2</CatalogId>
      <CatalogValueId>1</CatalogValueId>
      <Description>sample string 4</Description>
    </CatalogValueModel>
    <CatalogValueModel>
      <Catalog>sample string 3</Catalog>
      <CatalogId>2</CatalogId>
      <CatalogValueId>1</CatalogValueId>
      <Description>sample string 4</Description>
    </CatalogValueModel>
  </InternationalNetworks>
  <IsGlobal>true</IsGlobal>
  <SourceNameId>8</SourceNameId>
  <SpecializedHealthcareProvider>sample string 7</SpecializedHealthcareProvider>
  <Status>true</Status>
  <TypeOfVendor>sample string 6</TypeOfVendor>
  <TypeOfVendorId>5</TypeOfVendorId>
  <VendorCompanyName>sample string 2</VendorCompanyName>
  <VendorId>1</VendorId>
  <VendorRoles>
    <CatalogValueModel>
      <Catalog>sample string 3</Catalog>
      <CatalogId>2</CatalogId>
      <CatalogValueId>1</CatalogValueId>
      <Description>sample string 4</Description>
    </CatalogValueModel>
    <CatalogValueModel>
      <Catalog>sample string 3</Catalog>
      <CatalogId>2</CatalogId>
      <CatalogValueId>1</CatalogValueId>
      <Description>sample string 4</Description>
    </CatalogValueModel>
  </VendorRoles>
</VendorModel>

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 'VendorModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.