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": "63e00cd2-a7f2-45ec-a448-2263ece42c07",
"NetworkId": "20ddb88b-ada6-4a88-b5b5-eb106e5f117a",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "80639648-e250-45eb-9127-404de078d7b5",
"StateDescription": "sample string 9",
"CountryId": "f7fd4240-b4ad-4b93-8d3f-efceb14c7c4a",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "656c3943-4815-4dee-ab94-6ebfbb2884cc",
"IdentificationTypeModelId": "424b9d4b-c7bf-4b46-ba2c-901da2c3c856",
"IdentificationType": 64
},
{
"LocationId": "656c3943-4815-4dee-ab94-6ebfbb2884cc",
"IdentificationTypeModelId": "424b9d4b-c7bf-4b46-ba2c-901da2c3c856",
"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>f7fd4240-b4ad-4b93-8d3f-efceb14c7c4a</CountryId>
<Id>63e00cd2-a7f2-45ec-a448-2263ece42c07</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>424b9d4b-c7bf-4b46-ba2c-901da2c3c856</IdentificationTypeModelId>
<LocationId>656c3943-4815-4dee-ab94-6ebfbb2884cc</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>424b9d4b-c7bf-4b46-ba2c-901da2c3c856</IdentificationTypeModelId>
<LocationId>656c3943-4815-4dee-ab94-6ebfbb2884cc</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>20ddb88b-ada6-4a88-b5b5-eb106e5f117a</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>80639648-e250-45eb-9127-404de078d7b5</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": "cb35c98b-97e4-4c08-8e9e-3c358093f8bb",
"NetworkId": "1a8fc13f-537e-4397-ae0a-8f24196d5c6b",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "f0512fd0-4f34-432b-afb8-d915f107a90e",
"StateDescription": "sample string 9",
"CountryId": "79c10a98-bb6a-4ec0-963f-2dc776b24958",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "4660367a-93d4-40d2-b44b-bc9c1039d4bc",
"IdentificationTypeModelId": "b59291bf-929c-4d55-a4a1-c7ed0a832e03",
"IdentificationType": 64
},
{
"LocationId": "4660367a-93d4-40d2-b44b-bc9c1039d4bc",
"IdentificationTypeModelId": "b59291bf-929c-4d55-a4a1-c7ed0a832e03",
"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>79c10a98-bb6a-4ec0-963f-2dc776b24958</CountryId>
<Id>cb35c98b-97e4-4c08-8e9e-3c358093f8bb</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>b59291bf-929c-4d55-a4a1-c7ed0a832e03</IdentificationTypeModelId>
<LocationId>4660367a-93d4-40d2-b44b-bc9c1039d4bc</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>b59291bf-929c-4d55-a4a1-c7ed0a832e03</IdentificationTypeModelId>
<LocationId>4660367a-93d4-40d2-b44b-bc9c1039d4bc</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>1a8fc13f-537e-4397-ae0a-8f24196d5c6b</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>f0512fd0-4f34-432b-afb8-d915f107a90e</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>