PUT api/vendors/{vendorId}/compliances/{complianceId}

PUT: api/vendors/{vendorId}/compliances/{complianceId} Update a Vendor Compliance

Request Information

URI Parameters

NameDescriptionTypeAdditional information
vendorId

int

integer

Required

complianceId

int

integer

Required

Body Parameters

VendorComplianceViewModel

UpdateVendorComplianceViewModel
NameDescriptionTypeAdditional information
ComplianceDate

date

Required

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:
{
  "complianceDate": "2024-10-14T08:27:20.8838817-04:00",
  "workflowStatusId": 1,
  "complianceTypeId": 1,
  "allowWorkOrders": true,
  "complianceStatusId": 2,
  "stateCode": "sample string 3",
  "countryCode": "sample string 4"
}

application/xml, text/xml

Sample:
<UpdateVendorComplianceViewModel 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>
  <ComplianceDate>2024-10-14T08:27:20.8838817-04:00</ComplianceDate>
</UpdateVendorComplianceViewModel>

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

Response Information

Resource Description

VendorComplianceViewModel

UpdateVendorComplianceViewModel
NameDescriptionTypeAdditional information
ComplianceDate

date

Required

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:
{
  "complianceDate": "2024-10-14T08:27:20.8995465-04:00",
  "workflowStatusId": 1,
  "complianceTypeId": 1,
  "allowWorkOrders": true,
  "complianceStatusId": 2,
  "stateCode": "sample string 3",
  "countryCode": "sample string 4"
}

application/xml, text/xml

Sample:
<UpdateVendorComplianceViewModel 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>
  <ComplianceDate>2024-10-14T08:27:20.8995465-04:00</ComplianceDate>
</UpdateVendorComplianceViewModel>