The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /v1/projectlocation HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ProjectLocationID: 0,
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
}
]
}
]
}
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
}
}
}