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": "dfa5b74a-6d33-4e49-b01b-5b55c09b0e5b",
"NetworkId": "2412a5e0-7c09-4838-977b-9eece62e9a39",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "f8610ed7-8ab1-4f5b-a42c-a6ce8e8d0179",
"StateDescription": "sample string 9",
"CountryId": "0ea49479-3b8d-4db3-a633-a00789366a6c",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "2e50324f-f8dd-4fb8-89ed-a1a465aee04c",
"IdentificationTypeModelId": "d1d04b6a-2cfc-47e9-9936-95b30074d568",
"IdentificationType": 64
},
{
"LocationId": "2e50324f-f8dd-4fb8-89ed-a1a465aee04c",
"IdentificationTypeModelId": "d1d04b6a-2cfc-47e9-9936-95b30074d568",
"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>0ea49479-3b8d-4db3-a633-a00789366a6c</CountryId>
<Id>dfa5b74a-6d33-4e49-b01b-5b55c09b0e5b</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>d1d04b6a-2cfc-47e9-9936-95b30074d568</IdentificationTypeModelId>
<LocationId>2e50324f-f8dd-4fb8-89ed-a1a465aee04c</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>d1d04b6a-2cfc-47e9-9936-95b30074d568</IdentificationTypeModelId>
<LocationId>2e50324f-f8dd-4fb8-89ed-a1a465aee04c</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>2412a5e0-7c09-4838-977b-9eece62e9a39</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>f8610ed7-8ab1-4f5b-a42c-a6ce8e8d0179</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.