PUT api/my/basura/sites/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

SitesUpdateNewDTO
NameDescriptionTypeAdditional information
name

string

None.

address

string

None.

latitude

decimal number

None.

longitude

decimal number

None.

typeId

integer

None.

isActive

boolean

None.

updatedBy

integer

None.

updatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "address": "sample string 2",
  "latitude": 1.1,
  "longitude": 1.1,
  "typeId": 1,
  "isActive": true,
  "updatedBy": 1,
  "updatedDate": "2025-07-13T18:30:41.7183133+08:00"
}

application/xml, text/xml

Sample:
<SitesUpdateNewDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.DTO">
  <address>sample string 2</address>
  <isActive>true</isActive>
  <latitude>1.1</latitude>
  <longitude>1.1</longitude>
  <name>sample string 1</name>
  <typeId>1</typeId>
  <updatedBy>1</updatedBy>
  <updatedDate>2025-07-13T18:30:41.7183133+08:00</updatedDate>
</SitesUpdateNewDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.