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": "164e8377-0d4f-4dec-a804-e1a6e5bae0f1",
"NetworkId": "fa97ee4e-ef32-4e5d-a9ff-112a5e213be2",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "e50aa17b-2d99-4b50-bf32-cb362184ca32",
"StateDescription": "sample string 9",
"CountryId": "175e3b0a-10c9-4e69-a136-d31bdb6cbe65",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "14ae5d98-ee27-4c02-bf18-03b8ec6783ff",
"IdentificationTypeModelId": "75c1fd36-7cf2-4827-ae0d-8e1b91b1f44a",
"IdentificationType": 64
},
{
"LocationId": "14ae5d98-ee27-4c02-bf18-03b8ec6783ff",
"IdentificationTypeModelId": "75c1fd36-7cf2-4827-ae0d-8e1b91b1f44a",
"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>175e3b0a-10c9-4e69-a136-d31bdb6cbe65</CountryId>
<Id>164e8377-0d4f-4dec-a804-e1a6e5bae0f1</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>75c1fd36-7cf2-4827-ae0d-8e1b91b1f44a</IdentificationTypeModelId>
<LocationId>14ae5d98-ee27-4c02-bf18-03b8ec6783ff</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>75c1fd36-7cf2-4827-ae0d-8e1b91b1f44a</IdentificationTypeModelId>
<LocationId>14ae5d98-ee27-4c02-bf18-03b8ec6783ff</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>fa97ee4e-ef32-4e5d-a9ff-112a5e213be2</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>e50aa17b-2d99-4b50-bf32-cb362184ca32</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": "69f2bd7e-00ed-4771-a1fc-a8306331303f",
"NetworkId": "efd20287-0e04-4980-af02-e79cc145e5b1",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "2b9dbbb2-e8f5-4539-b578-3c3aa7225db8",
"StateDescription": "sample string 9",
"CountryId": "1ecf2ec0-1c2f-4691-8913-450194fddc1a",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "a4cd37c8-8ba9-415c-8c60-41b9c1252643",
"IdentificationTypeModelId": "d89fd9cf-e2e8-4bee-92bf-c0e3ccc0631a",
"IdentificationType": 64
},
{
"LocationId": "a4cd37c8-8ba9-415c-8c60-41b9c1252643",
"IdentificationTypeModelId": "d89fd9cf-e2e8-4bee-92bf-c0e3ccc0631a",
"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>1ecf2ec0-1c2f-4691-8913-450194fddc1a</CountryId>
<Id>69f2bd7e-00ed-4771-a1fc-a8306331303f</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>d89fd9cf-e2e8-4bee-92bf-c0e3ccc0631a</IdentificationTypeModelId>
<LocationId>a4cd37c8-8ba9-415c-8c60-41b9c1252643</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>d89fd9cf-e2e8-4bee-92bf-c0e3ccc0631a</IdentificationTypeModelId>
<LocationId>a4cd37c8-8ba9-415c-8c60-41b9c1252643</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>efd20287-0e04-4980-af02-e79cc145e5b1</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>2b9dbbb2-e8f5-4539-b578-3c3aa7225db8</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>