POST api/Administration/PAContractor/CreateUpdate
Request Information
URI Parameters
None.
Body Parameters
PAContractorCreateUpdateViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Name | string |
None. |
|
Code | string |
None. |
|
IsActive | boolean |
None. |
|
IsDeleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "fe8af398-75d3-4cef-8bdb-3bf07bf932be", "Name": "sample string 2", "Code": "sample string 3", "IsActive": true, "IsDeleted": true }
application/xml, text/xml
Sample:
<PAContractorCreateUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Administration.ViewModels"> <Code>sample string 3</Code> <Id>fe8af398-75d3-4cef-8bdb-3bf07bf932be</Id> <IsActive>true</IsActive> <IsDeleted>true</IsDeleted> <Name>sample string 2</Name> </PAContractorCreateUpdateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Id" fe8af398-75d3-4cef-8bdb-3bf07bf932be --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Code" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IsActive" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IsDeleted" True --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, multipart/form-data
Sample:
Sample not available.