PUT api/entities/{entityId}/vendors/all

Assign all vendors in the criteria to entityId

Request Information

URI Parameters

NameDescriptionTypeAdditional information
entityId

integer

Required

Body Parameters

EntityVendorAssignCriteria
NameDescriptionTypeAdditional information
Exclude

Collection of integer

None.

FederalTaxId

string

None.

VendorDisplayName

string

None.

VendorTypeId

integer

None.

VendorServiceId

integer

None.

IsActive

boolean

None.

Address1

string

None.

Address2

string

None.

City

string

None.

State

string

None.

ZipCode

string

None.

IsEntityLinked

boolean

None.

LinkedEntitySuperEntityId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "exclude": [
    1,
    2
  ],
  "federalTaxId": "sample string 1",
  "vendorDisplayName": "sample string 2",
  "vendorTypeId": 1,
  "vendorServiceId": 1,
  "isActive": true,
  "address1": "sample string 3",
  "address2": "sample string 4",
  "city": "sample string 5",
  "state": "sample string 6",
  "zipCode": "sample string 7",
  "isEntityLinked": true,
  "linkedEntitySuperEntityId": 1
}

application/xml, text/xml

Sample:
<EntityVendorAssignCriteria xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.Controllers.Entities.Models">
  <Address1>sample string 3</Address1>
  <Address2>sample string 4</Address2>
  <City>sample string 5</City>
  <Exclude xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Exclude>
  <FederalTaxId>sample string 1</FederalTaxId>
  <IsActive>true</IsActive>
  <IsEntityLinked>true</IsEntityLinked>
  <LinkedEntitySuperEntityId>1</LinkedEntitySuperEntityId>
  <State>sample string 6</State>
  <VendorDisplayName>sample string 2</VendorDisplayName>
  <VendorServiceId>1</VendorServiceId>
  <VendorTypeId>1</VendorTypeId>
  <ZipCode>sample string 7</ZipCode>
</EntityVendorAssignCriteria>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.