POST api/vendors/{vendorId}/compliances

POST: api/vendors/{vendorId}/compliances Insert a new Vendor Compliance

Request Information

URI Parameters

NameDescriptionTypeAdditional information
vendorId

int

integer

Required

Body Parameters

InsertVendorComplianceViewModel

InsertVendorComplianceViewModel
NameDescriptionTypeAdditional information
WorkflowStatusId

integer

Required

ComplianceTypeId

integer

Required

AllowWorkOrders

boolean

Required

ComplianceStatusId

integer

Required

StateCode

string

Required

CountryCode

string

Required

Request Formats

application/json, text/json

Sample:
{
  "workflowStatusId": 1,
  "complianceTypeId": 1,
  "allowWorkOrders": true,
  "complianceStatusId": 2,
  "stateCode": "sample string 3",
  "countryCode": "sample string 4"
}

application/xml, text/xml

Sample:
<InsertVendorComplianceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">
  <AllowWorkOrders>true</AllowWorkOrders>
  <ComplianceStatusId>2</ComplianceStatusId>
  <ComplianceTypeId>1</ComplianceTypeId>
  <CountryCode>sample string 4</CountryCode>
  <StateCode>sample string 3</StateCode>
  <WorkflowStatusId>1</WorkflowStatusId>
</InsertVendorComplianceViewModel>

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

Response Information

Resource Description

UpdateVendorComplianceViewModel

InsertVendorComplianceViewModel
NameDescriptionTypeAdditional information
WorkflowStatusId

integer

Required

ComplianceTypeId

integer

Required

AllowWorkOrders

boolean

Required

ComplianceStatusId

integer

Required

StateCode

string

Required

CountryCode

string

Required

Response Formats

application/json, text/json

Sample:
{
  "workflowStatusId": 1,
  "complianceTypeId": 1,
  "allowWorkOrders": true,
  "complianceStatusId": 2,
  "stateCode": "sample string 3",
  "countryCode": "sample string 4"
}

application/xml, text/xml

Sample:
<InsertVendorComplianceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">
  <AllowWorkOrders>true</AllowWorkOrders>
  <ComplianceStatusId>2</ComplianceStatusId>
  <ComplianceTypeId>1</ComplianceTypeId>
  <CountryCode>sample string 4</CountryCode>
  <StateCode>sample string 3</StateCode>
  <WorkflowStatusId>1</WorkflowStatusId>
</InsertVendorComplianceViewModel>