PUT api/Unit/Update

Request Information

URI Parameters

None.

Body Parameters

UnitUpdateDto
NameDescriptionTypeAdditional information
Name

string

None.

ID

globally unique identifier

Required

CompanyID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "id": "71b6b2ce-dc8e-4ae1-b7a0-4b7f8b8bdc7b",
  "companyID": "12e9ff16-2078-4f4f-adcb-7c377bd2ce76"
}

application/xml, text/xml

Sample:
<UnitUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs">
  <CompanyID>12e9ff16-2078-4f4f-adcb-7c377bd2ce76</CompanyID>
  <ID>71b6b2ce-dc8e-4ae1-b7a0-4b7f8b8bdc7b</ID>
  <Name>sample string 1</Name>
</UnitUpdateDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"name":"sample string 1","id":"71b6b2ce-dc8e-4ae1-b7a0-4b7f8b8bdc7b","companyID":"12e9ff16-2078-4f4f-adcb-7c377bd2ce76"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.