POST Locations
Request Information
URI Parameters
None.
Body Parameters
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": "8086069b-de7b-4580-b338-254e2dfc4238",
"NetworkId": "1d51a4ce-79b6-44bc-bca8-4f0ab81621cc",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "778c0126-da3a-4221-967a-cd1aa4b4f25d",
"StateDescription": "sample string 9",
"CountryId": "b704dc2e-13f3-4845-831f-cdd205d6427a",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "66dbc8e8-c81c-4e68-a016-40f78285f1c6",
"IdentificationTypeModelId": "79554c2f-e32e-4fba-a934-a3043acb38bd",
"IdentificationType": 64
},
{
"LocationId": "66dbc8e8-c81c-4e68-a016-40f78285f1c6",
"IdentificationTypeModelId": "79554c2f-e32e-4fba-a934-a3043acb38bd",
"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>b704dc2e-13f3-4845-831f-cdd205d6427a</CountryId>
<Id>8086069b-de7b-4580-b338-254e2dfc4238</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>79554c2f-e32e-4fba-a934-a3043acb38bd</IdentificationTypeModelId>
<LocationId>66dbc8e8-c81c-4e68-a016-40f78285f1c6</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>79554c2f-e32e-4fba-a934-a3043acb38bd</IdentificationTypeModelId>
<LocationId>66dbc8e8-c81c-4e68-a016-40f78285f1c6</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>1d51a4ce-79b6-44bc-bca8-4f0ab81621cc</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>778c0126-da3a-4221-967a-cd1aa4b4f25d</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
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": "0902a028-5161-4b3f-bb7f-4cd7cc0a1344",
"NetworkId": "f5dd5775-d714-4685-8e3c-cb78bd55b7db",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "72358230-bdad-4365-adec-d096e1b0508f",
"StateDescription": "sample string 9",
"CountryId": "b4aacc24-88d1-4134-8ad7-289d7357d3f5",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "36961ad5-9dc8-4cb1-bc02-d5f3d2ef9b01",
"IdentificationTypeModelId": "e388f74a-37dc-47e2-b4e4-3ab74ebbc440",
"IdentificationType": 64
},
{
"LocationId": "36961ad5-9dc8-4cb1-bc02-d5f3d2ef9b01",
"IdentificationTypeModelId": "e388f74a-37dc-47e2-b4e4-3ab74ebbc440",
"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>b4aacc24-88d1-4134-8ad7-289d7357d3f5</CountryId>
<Id>0902a028-5161-4b3f-bb7f-4cd7cc0a1344</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>e388f74a-37dc-47e2-b4e4-3ab74ebbc440</IdentificationTypeModelId>
<LocationId>36961ad5-9dc8-4cb1-bc02-d5f3d2ef9b01</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>e388f74a-37dc-47e2-b4e4-3ab74ebbc440</IdentificationTypeModelId>
<LocationId>36961ad5-9dc8-4cb1-bc02-d5f3d2ef9b01</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>f5dd5775-d714-4685-8e3c-cb78bd55b7db</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>72358230-bdad-4365-adec-d096e1b0508f</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>