| POST | /sites/locations | Creates a new Location. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UserID | query | Guid | Yes | The UserID that authorizes the caller to complete the request. Contact your eQuip admin. |
| LocationID | body | int | No | Location ID |
| LocationCategoryID | body | int | Yes | Location Category ID |
| UL_LocationID | body | int | No | UL Location ID |
| SiteID | body | int | Yes | Site ID |
| PlanID | body | int | No | Plan ID |
| ZoneID | body | int | No | Zone ID |
| LocationBarcode | body | string | No | Location Barcode |
| LocationName | body | string | Yes | The name of location |
| LocationDescription | body | string | No | Location Description |
| LocationX | body | int | No | LocationX |
| LocationY | body | int | No | LocationY |
| Width | body | int | No | Width |
| Height | body | int | No | Height |
| SizeType | body | string | No | Size Type |
| Opacity | body | string | No | Opacity |
| Color | body | string | No | Color |
| DisplayOnScanner | body | boolean | No | Display On Scanner |
| FileLocatorCode | body | string | No | File Locator Code |
| DateCreated | body | datetime | No | Created date |
| DateModified | body | datetime | No | Modified date |
| UseMap | body | boolean | No | Use Map? |
| CustomFields | body | List<CustomElement> | No | Custom Fields collection |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FieldName | body | string | Yes | The name of the field |
| FieldValue | body | object | No | The value of the field |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| LocationID | body | string | No | Location ID |
| LocationCategoryID | body | string | No | Location Category ID |
| UL_LocationID | body | string | No | UL Location ID |
| SiteID | body | string | No | Site ID |
| PlanID | body | string | No | Plan ID |
| ZoneID | body | string | No | Zone ID |
| LocationBarcode | body | string | No | Location Barcode |
| LocationName | body | string | No | Location Name |
| LocationDescription | body | string | No | Location Description |
| LocationX | body | string | No | LocationX |
| LocationY | body | string | No | LocationY |
| Width | body | string | No | Width |
| Height | body | string | No | Height |
| SizeType | body | string | No | Size Type |
| Opacity | body | string | No | Opacity |
| Color | body | string | No | Color |
| DisplayOnScanner | body | string | No | Display On Scanner |
| FileLocatorCode | body | string | No | File Locator Code |
| DateCreated | body | string | No | Date Created |
| DateModified | body | string | No | Date Modified |
| UseMap | body | string | No | Use Map? |
| CustomFields | body | List<CustomKeyPair> | No | Custom Fields |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FieldName | body | string | No | The name of field |
| FieldValue | body | object | No | The value of field |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/CreateLocation HTTP/1.1
Host: equipstage3.e-isg.com
Content-Type: application/xml
Content-Length: length
<CreateLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eQuipModel">
<Color>String</Color>
<CustomFields>
<CustomElement>
<FieldName>String</FieldName>
<FieldValue />
</CustomElement>
</CustomFields>
<DateCreated>0001-01-01T00:00:00</DateCreated>
<DateModified>0001-01-01T00:00:00</DateModified>
<DisplayOnScanner>false</DisplayOnScanner>
<FileLocatorCode>String</FileLocatorCode>
<Height>0</Height>
<LocationBarcode>String</LocationBarcode>
<LocationCategoryID>0</LocationCategoryID>
<LocationDescription>String</LocationDescription>
<LocationID>0</LocationID>
<LocationName>String</LocationName>
<LocationX>0</LocationX>
<LocationY>0</LocationY>
<Opacity>String</Opacity>
<PlanID>0</PlanID>
<SiteID>0</SiteID>
<SizeType>String</SizeType>
<UL_LocationID>0</UL_LocationID>
<UseMap>false</UseMap>
<UserID>String</UserID>
<Width>0</Width>
<ZoneID>0</ZoneID>
</CreateLocation>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<LocationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eQuipModel">
<Color>String</Color>
<CustomFields>
<CustomKeyPair>
<FieldName>String</FieldName>
<FieldValue />
</CustomKeyPair>
</CustomFields>
<DateCreated>0001-01-01T00:00:00</DateCreated>
<DateModified>0001-01-01T00:00:00</DateModified>
<DisplayOnScanner>false</DisplayOnScanner>
<FileLocatorCode>String</FileLocatorCode>
<Height>0</Height>
<LocationBarcode>String</LocationBarcode>
<LocationCategoryID>0</LocationCategoryID>
<LocationDescription>String</LocationDescription>
<LocationID>0</LocationID>
<LocationName>String</LocationName>
<LocationX>0</LocationX>
<LocationY>0</LocationY>
<Opacity>String</Opacity>
<PlanID>0</PlanID>
<SiteID>0</SiteID>
<SizeType>String</SizeType>
<UL_LocationID>0</UL_LocationID>
<UseMap>false</UseMap>
<Width>0</Width>
<ZoneID>0</ZoneID>
</LocationDto>