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": "1df40ead-83f4-4984-b306-f38f9c91030c",
"NetworkId": "9d9cd7ef-3bae-447d-ad69-ad65f2eddb76",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "1c97736a-7dfd-4815-8612-dc92763b0ec5",
"StateDescription": "sample string 9",
"CountryId": "d9414e55-6280-4274-a622-768e79042e0e",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "04605aa9-07f6-48f5-9c78-1b2eb81ee2f2",
"IdentificationTypeModelId": "fc731eb4-3144-413e-85b8-0302c47c4a7f",
"IdentificationType": 64
},
{
"LocationId": "04605aa9-07f6-48f5-9c78-1b2eb81ee2f2",
"IdentificationTypeModelId": "fc731eb4-3144-413e-85b8-0302c47c4a7f",
"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>d9414e55-6280-4274-a622-768e79042e0e</CountryId>
<Id>1df40ead-83f4-4984-b306-f38f9c91030c</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>fc731eb4-3144-413e-85b8-0302c47c4a7f</IdentificationTypeModelId>
<LocationId>04605aa9-07f6-48f5-9c78-1b2eb81ee2f2</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>fc731eb4-3144-413e-85b8-0302c47c4a7f</IdentificationTypeModelId>
<LocationId>04605aa9-07f6-48f5-9c78-1b2eb81ee2f2</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>9d9cd7ef-3bae-447d-ad69-ad65f2eddb76</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>1c97736a-7dfd-4815-8612-dc92763b0ec5</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": "01189152-cb1b-4767-9ea2-1431746f8c42",
"NetworkId": "799913dc-624a-4fec-b504-3ca7892c2c5f",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "076ffcd2-c6f3-475a-adec-442f09d94feb",
"StateDescription": "sample string 9",
"CountryId": "b4c1ea46-deda-4007-83be-387a75817101",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "b5babf95-6aaa-4e72-b9a6-41e6b3f1332c",
"IdentificationTypeModelId": "d2a645ac-86be-4c2d-87ae-cf4f49f3261d",
"IdentificationType": 64
},
{
"LocationId": "b5babf95-6aaa-4e72-b9a6-41e6b3f1332c",
"IdentificationTypeModelId": "d2a645ac-86be-4c2d-87ae-cf4f49f3261d",
"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>b4c1ea46-deda-4007-83be-387a75817101</CountryId>
<Id>01189152-cb1b-4767-9ea2-1431746f8c42</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>d2a645ac-86be-4c2d-87ae-cf4f49f3261d</IdentificationTypeModelId>
<LocationId>b5babf95-6aaa-4e72-b9a6-41e6b3f1332c</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>d2a645ac-86be-4c2d-87ae-cf4f49f3261d</IdentificationTypeModelId>
<LocationId>b5babf95-6aaa-4e72-b9a6-41e6b3f1332c</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>799913dc-624a-4fec-b504-3ca7892c2c5f</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>076ffcd2-c6f3-475a-adec-442f09d94feb</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>