| POST,PUT | /v1/projectlocationequipment | ||
|---|---|---|---|
| DELETE | /v1/projectlocationequipment/{ProjectLocationEquipmentID} |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProjectLocationEquipmentID | path | int | No | |
| Equipment | body | List<ProjectLocationEquipment> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProjectLocationEquipmentID | form | int | No | |
| ProjectLocationID | form | int | No | |
| Name | form | string | No | |
| Description | form | string | No | |
| Manufacturer | form | string | No | |
| Model | form | string | No | |
| SerialNumber | form | string | No | |
| AssetTag | form | string | No | |
| Notes | form | string | No | |
| Active | form | bool | No | |
| CreatedBy | form | string | No | |
| CreatedAt | form | DateTime? | No | |
| UpdatedAt | form | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Locations | form | List<ProjectLocation> | No | |
| Areas | form | List<ProjectLocationArea> | No | |
| Equipment | form | List<ProjectLocationEquipment> | No | |
| SiteDetails | form | List<ProjectLocationSiteDetail> | No | |
| Attachments | form | List<ProjectLocationAttachment> | No | |
| SiteDetail | form | ProjectLocationSiteDetail | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProjectLocationID | form | int | No | |
| ProjectID | form | int | No | |
| Name | form | string | No | |
| Address1 | form | string | No | |
| Address2 | form | string | No | |
| City | form | string | No | |
| State | form | string | No | |
| Zip | form | string | No | |
| Latitude | form | decimal? | No | |
| Longitude | form | decimal? | No | |
| TotalArea | form | decimal? | No | |
| AreaUnit | form | string | No | |
| AccessInstructions | form | string | No | |
| IsPrimary | form | bool | No | |
| DisplayOrder | form | int | No | |
| Active | form | bool | No | |
| CreatedBy | form | string | No | |
| CreatedAt | form | DateTime? | No | |
| UpdatedAt | form | DateTime? | No | |
| Areas | form | List<ProjectLocationArea> | No | |
| Equipment | form | List<ProjectLocationEquipment> | No | |
| SiteDetails | form | List<ProjectLocationSiteDetail> | No | |
| Attachments | form | List<ProjectLocationAttachment> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProjectLocationAreaID | form | int | No | |
| ProjectLocationID | form | int | No | |
| Name | form | string | No | |
| Measurement | form | decimal? | No | |
| MeasurementUnit | form | string | No | |
| Notes | form | string | No | |
| DisplayOrder | form | int | No | |
| Active | form | bool | No | |
| CreatedBy | form | string | No | |
| CreatedAt | form | DateTime? | No | |
| UpdatedAt | form | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProjectLocationSiteDetailID | form | int | No | |
| ProjectLocationID | form | int | No | |
| DetailType | form | string | No | |
| Label | form | string | No | |
| Value | form | string | No | |
| IsSensitive | form | bool | No | |
| EncVersion | form | int | No | |
| HasValue | form | bool | No | |
| Notes | form | string | No | |
| DisplayOrder | form | int | No | |
| Active | form | bool | No | |
| CreatedBy | form | string | No | |
| CreatedAt | form | DateTime? | No | |
| UpdatedAt | form | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProjectLocationAttachmentID | form | int | No | |
| ProjectLocationID | form | int | No | |
| ProjectLocationAreaID | form | int? | No | |
| Kind | form | string | No | |
| DocTitle | form | string | No | |
| FileName | form | string | No | |
| Url | form | string | No | |
| MimeType | form | string | No | |
| UploadDate | form | DateTime? | No | |
| UploadedBy | form | string | No | |
| Active | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/projectlocationequipment HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ProjectLocationEquipmentID: 0,
Equipment:
[
{
ProjectLocationEquipmentID: 0,
ProjectLocationID: 0,
Name: String,
Description: String,
Manufacturer: String,
Model: String,
SerialNumber: String,
AssetTag: String,
Notes: String,
Active: False,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Locations:
[
{
ProjectLocationID: 0,
ProjectID: 0,
Name: String,
Address1: String,
Address2: String,
City: String,
State: String,
Zip: String,
Latitude: 0,
Longitude: 0,
TotalArea: 0,
AreaUnit: String,
AccessInstructions: String,
IsPrimary: False,
DisplayOrder: 0,
Active: False,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01,
Areas:
[
{
ProjectLocationAreaID: 0,
ProjectLocationID: 0,
Name: String,
Measurement: 0,
MeasurementUnit: String,
Notes: String,
DisplayOrder: 0,
Active: False,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01
}
],
Equipment:
[
{
ProjectLocationEquipmentID: 0,
ProjectLocationID: 0,
Name: String,
Description: String,
Manufacturer: String,
Model: String,
SerialNumber: String,
AssetTag: String,
Notes: String,
Active: False,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01
}
],
SiteDetails:
[
{
ProjectLocationSiteDetailID: 0,
ProjectLocationID: 0,
DetailType: String,
Label: String,
Value: String,
IsSensitive: False,
EncVersion: 0,
HasValue: False,
Notes: String,
DisplayOrder: 0,
Active: False,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01
}
],
Attachments:
[
{
ProjectLocationAttachmentID: 0,
ProjectLocationID: 0,
ProjectLocationAreaID: 0,
Kind: String,
DocTitle: String,
FileName: String,
Url: String,
MimeType: String,
UploadDate: 0001-01-01,
UploadedBy: String,
Active: False
}
]
}
],
Areas:
[
{
ProjectLocationAreaID: 0,
ProjectLocationID: 0,
Name: String,
Measurement: 0,
MeasurementUnit: String,
Notes: String,
DisplayOrder: 0,
Active: False,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01
}
],
Equipment:
[
{
ProjectLocationEquipmentID: 0,
ProjectLocationID: 0,
Name: String,
Description: String,
Manufacturer: String,
Model: String,
SerialNumber: String,
AssetTag: String,
Notes: String,
Active: False,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01
}
],
SiteDetails:
[
{
ProjectLocationSiteDetailID: 0,
ProjectLocationID: 0,
DetailType: String,
Label: String,
Value: String,
IsSensitive: False,
EncVersion: 0,
HasValue: False,
Notes: String,
DisplayOrder: 0,
Active: False,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01
}
],
Attachments:
[
{
ProjectLocationAttachmentID: 0,
ProjectLocationID: 0,
ProjectLocationAreaID: 0,
Kind: String,
DocTitle: String,
FileName: String,
Url: String,
MimeType: String,
UploadDate: 0001-01-01,
UploadedBy: String,
Active: False
}
],
SiteDetail:
{
ProjectLocationSiteDetailID: 0,
ProjectLocationID: 0,
DetailType: String,
Label: String,
Value: String,
IsSensitive: False,
EncVersion: 0,
HasValue: False,
Notes: String,
DisplayOrder: 0,
Active: False,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01
},
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}