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": "b85b9a35-12a7-4280-8b6a-a474b04c6a02",
"NetworkId": "272201cd-80dd-4fc6-b4a6-2e1d6f5aaae8",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "4b054482-e0fe-4296-894d-2930dbc2aaca",
"StateDescription": "sample string 9",
"CountryId": "1912ca71-42d3-4614-a9de-a1b4c8ee5667",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "3d7a07af-2902-4245-ae80-a71fd0b474d6",
"IdentificationTypeModelId": "005e9d93-3e09-4486-8c17-53a6e89881e0",
"IdentificationType": 64
},
{
"LocationId": "3d7a07af-2902-4245-ae80-a71fd0b474d6",
"IdentificationTypeModelId": "005e9d93-3e09-4486-8c17-53a6e89881e0",
"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>1912ca71-42d3-4614-a9de-a1b4c8ee5667</CountryId>
<Id>b85b9a35-12a7-4280-8b6a-a474b04c6a02</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>005e9d93-3e09-4486-8c17-53a6e89881e0</IdentificationTypeModelId>
<LocationId>3d7a07af-2902-4245-ae80-a71fd0b474d6</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>005e9d93-3e09-4486-8c17-53a6e89881e0</IdentificationTypeModelId>
<LocationId>3d7a07af-2902-4245-ae80-a71fd0b474d6</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>272201cd-80dd-4fc6-b4a6-2e1d6f5aaae8</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>4b054482-e0fe-4296-894d-2930dbc2aaca</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": "0dbdd09c-9113-4084-9225-ccd7fb1bbae5",
"NetworkId": "8d36dd0f-f3f9-4ed3-aae8-337f55792bef",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "77eb4c9c-d6d5-49e2-9367-43cc829e8473",
"StateDescription": "sample string 9",
"CountryId": "a627df5e-9b5f-4116-99fa-e022149ef2bb",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "55f4a951-cfd6-47d2-bef2-366739f93bec",
"IdentificationTypeModelId": "db204e0a-2c8d-4a15-be83-ac53e959f161",
"IdentificationType": 64
},
{
"LocationId": "55f4a951-cfd6-47d2-bef2-366739f93bec",
"IdentificationTypeModelId": "db204e0a-2c8d-4a15-be83-ac53e959f161",
"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>a627df5e-9b5f-4116-99fa-e022149ef2bb</CountryId>
<Id>0dbdd09c-9113-4084-9225-ccd7fb1bbae5</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>db204e0a-2c8d-4a15-be83-ac53e959f161</IdentificationTypeModelId>
<LocationId>55f4a951-cfd6-47d2-bef2-366739f93bec</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>db204e0a-2c8d-4a15-be83-ac53e959f161</IdentificationTypeModelId>
<LocationId>55f4a951-cfd6-47d2-bef2-366739f93bec</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>8d36dd0f-f3f9-4ed3-aae8-337f55792bef</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>77eb4c9c-d6d5-49e2-9367-43cc829e8473</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>