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": "26787978-920a-463b-b4e9-e4f84d5f2607",
"NetworkId": "acd0b532-1e8b-4967-b55f-94574c80f6b1",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "0f8c94aa-58b1-4815-94d6-566e92c8c976",
"StateDescription": "sample string 9",
"CountryId": "e3715354-4898-4af2-ac6a-99ac0c2ce228",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "03565843-401d-486a-a4cb-e289429cc835",
"IdentificationTypeModelId": "f5cc6b3e-c13f-4f45-9f77-051ff0a547b4",
"IdentificationType": 64
},
{
"LocationId": "03565843-401d-486a-a4cb-e289429cc835",
"IdentificationTypeModelId": "f5cc6b3e-c13f-4f45-9f77-051ff0a547b4",
"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>e3715354-4898-4af2-ac6a-99ac0c2ce228</CountryId>
<Id>26787978-920a-463b-b4e9-e4f84d5f2607</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>f5cc6b3e-c13f-4f45-9f77-051ff0a547b4</IdentificationTypeModelId>
<LocationId>03565843-401d-486a-a4cb-e289429cc835</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>f5cc6b3e-c13f-4f45-9f77-051ff0a547b4</IdentificationTypeModelId>
<LocationId>03565843-401d-486a-a4cb-e289429cc835</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>acd0b532-1e8b-4967-b55f-94574c80f6b1</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>0f8c94aa-58b1-4815-94d6-566e92c8c976</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": "3a3e8f8f-4b75-47e1-9174-e9a784b0e5f1",
"NetworkId": "78d95d4b-d5b8-4dd9-96e0-aac0e24dee68",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "031cc7ba-253a-4170-b711-4ccbd64b1ab6",
"StateDescription": "sample string 9",
"CountryId": "e5a9700a-b570-4909-8a98-b0f244d7e747",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "5cbe16d7-4d2e-4061-ab35-f248546a8f3e",
"IdentificationTypeModelId": "a4bd9df2-1ac0-4291-b54e-259693383fcf",
"IdentificationType": 64
},
{
"LocationId": "5cbe16d7-4d2e-4061-ab35-f248546a8f3e",
"IdentificationTypeModelId": "a4bd9df2-1ac0-4291-b54e-259693383fcf",
"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>e5a9700a-b570-4909-8a98-b0f244d7e747</CountryId>
<Id>3a3e8f8f-4b75-47e1-9174-e9a784b0e5f1</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>a4bd9df2-1ac0-4291-b54e-259693383fcf</IdentificationTypeModelId>
<LocationId>5cbe16d7-4d2e-4061-ab35-f248546a8f3e</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>a4bd9df2-1ac0-4291-b54e-259693383fcf</IdentificationTypeModelId>
<LocationId>5cbe16d7-4d2e-4061-ab35-f248546a8f3e</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>78d95d4b-d5b8-4dd9-96e0-aac0e24dee68</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>031cc7ba-253a-4170-b711-4ccbd64b1ab6</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>