POST Locations
Creates a new location.
Request Information
URI Parameters
None.
Body Parameters
The 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": "d86c3c1a-7d67-46e3-90b3-a51d74fdb2c5",
"NetworkId": "20872739-ef31-41dc-97b1-2a5613bab620",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "b7d77074-08df-4a46-8d2a-3af2258bf997",
"StateDescription": "sample string 9",
"CountryId": "e551b7eb-b6ad-4903-9cf7-d26513cade40",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "e290b7ea-df39-4654-bafa-a87f776f67e1",
"IdentificationTypeModelId": "a93bd5ca-3cae-49c3-9ce5-1558212829dd",
"IdentificationType": 64
},
{
"LocationId": "e290b7ea-df39-4654-bafa-a87f776f67e1",
"IdentificationTypeModelId": "a93bd5ca-3cae-49c3-9ce5-1558212829dd",
"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>e551b7eb-b6ad-4903-9cf7-d26513cade40</CountryId>
<Id>d86c3c1a-7d67-46e3-90b3-a51d74fdb2c5</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>a93bd5ca-3cae-49c3-9ce5-1558212829dd</IdentificationTypeModelId>
<LocationId>e290b7ea-df39-4654-bafa-a87f776f67e1</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>a93bd5ca-3cae-49c3-9ce5-1558212829dd</IdentificationTypeModelId>
<LocationId>e290b7ea-df39-4654-bafa-a87f776f67e1</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>20872739-ef31-41dc-97b1-2a5613bab620</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>b7d77074-08df-4a46-8d2a-3af2258bf997</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, and if created returns the location as LocationDto and the link to de 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. |
Response Formats
application/json, text/json
Sample:
{
"Id": "552eabda-8a0a-44d5-8d01-1b81e4c56c4f",
"NetworkId": "a8a03dbd-3a6a-4754-b4ef-8bad34efab27",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "c6371bbc-896e-4c71-9c19-bbb1c449f600",
"StateDescription": "sample string 9",
"CountryId": "ea9163d9-274f-49e4-a1e6-ae92006428d8",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "8b4661ce-c395-43a6-98ca-d029e947c60f",
"IdentificationTypeModelId": "f94dd833-4294-40f8-9546-dedb2421a076",
"IdentificationType": 64
},
{
"LocationId": "8b4661ce-c395-43a6-98ca-d029e947c60f",
"IdentificationTypeModelId": "f94dd833-4294-40f8-9546-dedb2421a076",
"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>ea9163d9-274f-49e4-a1e6-ae92006428d8</CountryId>
<Id>552eabda-8a0a-44d5-8d01-1b81e4c56c4f</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>f94dd833-4294-40f8-9546-dedb2421a076</IdentificationTypeModelId>
<LocationId>8b4661ce-c395-43a6-98ca-d029e947c60f</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>f94dd833-4294-40f8-9546-dedb2421a076</IdentificationTypeModelId>
<LocationId>8b4661ce-c395-43a6-98ca-d029e947c60f</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>a8a03dbd-3a6a-4754-b4ef-8bad34efab27</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>c6371bbc-896e-4c71-9c19-bbb1c449f600</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>