Trendsic Platform Service

<back to all web services

ProjectLocationRequest

Requires Authentication
The following routes are available for this service:
POST,PUT/v1/projectlocation
GET,DELETE/v1/projectlocation/{ProjectLocationID}
ProjectLocationRequest Parameters:
NameParameterData TypeRequiredDescription
ProjectLocationIDpathintNo
LocationsbodyList<ProjectLocation>No
ProjectLocation Parameters:
NameParameterData TypeRequiredDescription
ProjectLocationIDformintNo
ProjectIDformintNo
NameformstringNo
Address1formstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
Latitudeformdecimal?No
Longitudeformdecimal?No
TotalAreaformdecimal?No
AreaUnitformstringNo
AccessInstructionsformstringNo
IsPrimaryformboolNo
DisplayOrderformintNo
ActiveformboolNo
CreatedByformstringNo
CreatedAtformDateTime?No
UpdatedAtformDateTime?No
AreasformList<ProjectLocationArea>No
EquipmentformList<ProjectLocationEquipment>No
SiteDetailsformList<ProjectLocationSiteDetail>No
AttachmentsformList<ProjectLocationAttachment>No
ProjectLocationArea Parameters:
NameParameterData TypeRequiredDescription
ProjectLocationAreaIDformintNo
ProjectLocationIDformintNo
NameformstringNo
Measurementformdecimal?No
MeasurementUnitformstringNo
NotesformstringNo
DisplayOrderformintNo
ActiveformboolNo
CreatedByformstringNo
CreatedAtformDateTime?No
UpdatedAtformDateTime?No
ProjectLocationEquipment Parameters:
NameParameterData TypeRequiredDescription
ProjectLocationEquipmentIDformintNo
ProjectLocationIDformintNo
NameformstringNo
DescriptionformstringNo
ManufacturerformstringNo
ModelformstringNo
SerialNumberformstringNo
AssetTagformstringNo
NotesformstringNo
ActiveformboolNo
CreatedByformstringNo
CreatedAtformDateTime?No
UpdatedAtformDateTime?No
ProjectLocationSiteDetail Parameters:
NameParameterData TypeRequiredDescription
ProjectLocationSiteDetailIDformintNo
ProjectLocationIDformintNo
DetailTypeformstringNo
LabelformstringNo
ValueformstringNo
IsSensitiveformboolNo
EncVersionformintNo
HasValueformboolNo
NotesformstringNo
DisplayOrderformintNo
ActiveformboolNo
CreatedByformstringNo
CreatedAtformDateTime?No
UpdatedAtformDateTime?No
ProjectLocationAttachment Parameters:
NameParameterData TypeRequiredDescription
ProjectLocationAttachmentIDformintNo
ProjectLocationIDformintNo
ProjectLocationAreaIDformint?No
KindformstringNo
DocTitleformstringNo
FileNameformstringNo
UrlformstringNo
MimeTypeformstringNo
UploadDateformDateTime?No
UploadedByformstringNo
ActiveformboolNo
ProjectLocationResponse Parameters:
NameParameterData TypeRequiredDescription
LocationsformList<ProjectLocation>No
AreasformList<ProjectLocationArea>No
EquipmentformList<ProjectLocationEquipment>No
SiteDetailsformList<ProjectLocationSiteDetail>No
AttachmentsformList<ProjectLocationAttachment>No
SiteDetailformProjectLocationSiteDetailNo
ResponseStatusformResponseStatusNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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
		}
	}
}