PUT Locations/{id}
Updates the location.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The ID of the location. |
globally unique identifier |
Required |
Body Parameters
The new data of the location.
LocationDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| NetworkId | globally unique identifier |
None. |
|
| Code | string |
None. |
|
| Street1 | string |
None. |
|
| Street2 | string |
None. |
|
| City | string |
None. |
|
| ZipCode | string |
None. |
|
| StateId | globally unique identifier |
None. |
|
| StateDescription | string |
None. |
|
| CountryId | globally unique identifier |
None. |
|
| ContactName | string |
None. |
|
| ContactPhoneNumber | string |
None. |
|
| CountryDescription | string |
None. |
|
| LocationsIdentificationsTypesModels | Collection of LocationIdentificationTypeModelDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "b93d692f-535e-4981-b0ca-1ffff5969742",
"NetworkId": "7e9509ff-8151-4a4c-8cf0-019f486169f5",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "cd9f9057-72ef-4441-a106-8a55adbed5b7",
"StateDescription": "sample string 9",
"CountryId": "83c4d11a-fe9b-4afe-907d-1446d829b5e1",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "4e0a5b6c-ccda-4539-817a-4de4d9471270",
"IdentificationTypeModelId": "ff4671e4-d7db-46d7-b916-c0a5473b8d9b",
"IdentificationType": 64
},
{
"LocationId": "4e0a5b6c-ccda-4539-817a-4de4d9471270",
"IdentificationTypeModelId": "ff4671e4-d7db-46d7-b916-c0a5473b8d9b",
"IdentificationType": 64
}
]
}
application/xml, text/xml
Sample:
<LocationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
<City>sample string 6</City>
<Code>sample string 3</Code>
<ContactName>sample string 11</ContactName>
<ContactPhoneNumber>sample string 12</ContactPhoneNumber>
<CountryDescription>sample string 13</CountryDescription>
<CountryId>83c4d11a-fe9b-4afe-907d-1446d829b5e1</CountryId>
<Id>b93d692f-535e-4981-b0ca-1ffff5969742</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>ff4671e4-d7db-46d7-b916-c0a5473b8d9b</IdentificationTypeModelId>
<LocationId>4e0a5b6c-ccda-4539-817a-4de4d9471270</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>ff4671e4-d7db-46d7-b916-c0a5473b8d9b</IdentificationTypeModelId>
<LocationId>4e0a5b6c-ccda-4539-817a-4de4d9471270</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>7e9509ff-8151-4a4c-8cf0-019f486169f5</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>cd9f9057-72ef-4441-a106-8a55adbed5b7</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
State of the action.
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.