Trendsic Platform Service

<back to all web services

ProjectLocationSiteDetailRequest

Requires Authentication
The following routes are available for this service:
POST,PUT/v1/projectlocationsitedetail
DELETE/v1/projectlocationsitedetail/{ProjectLocationSiteDetailID}
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type ProjectLocationArea() = 
        member val ProjectLocationAreaID:Int32 = new Int32() with get,set
        member val ProjectLocationID:Int32 = new Int32() with get,set
        member val Name:String = null with get,set
        member val Measurement:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val MeasurementUnit:String = null with get,set
        member val Notes:String = null with get,set
        member val DisplayOrder:Int32 = new Int32() with get,set
        member val Active:Boolean = new Boolean() with get,set
        member val CreatedBy:String = null with get,set
        member val CreatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val UpdatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set

    [<AllowNullLiteral>]
    type ProjectLocationEquipment() = 
        member val ProjectLocationEquipmentID:Int32 = new Int32() with get,set
        member val ProjectLocationID:Int32 = new Int32() with get,set
        member val Name:String = null with get,set
        member val Description:String = null with get,set
        member val Manufacturer:String = null with get,set
        member val Model:String = null with get,set
        member val SerialNumber:String = null with get,set
        member val AssetTag:String = null with get,set
        member val Notes:String = null with get,set
        member val Active:Boolean = new Boolean() with get,set
        member val CreatedBy:String = null with get,set
        member val CreatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val UpdatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set

    [<AllowNullLiteral>]
    type ProjectLocationSiteDetail() = 
        member val ProjectLocationSiteDetailID:Int32 = new Int32() with get,set
        member val ProjectLocationID:Int32 = new Int32() with get,set
        member val DetailType:String = null with get,set
        member val Label:String = null with get,set
        member val Value:String = null with get,set
        member val IsSensitive:Boolean = new Boolean() with get,set
        member val EncVersion:Int32 = new Int32() with get,set
        member val HasValue:Boolean = new Boolean() with get,set
        member val Notes:String = null with get,set
        member val DisplayOrder:Int32 = new Int32() with get,set
        member val Active:Boolean = new Boolean() with get,set
        member val CreatedBy:String = null with get,set
        member val CreatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val UpdatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set

    [<AllowNullLiteral>]
    type ProjectLocationAttachment() = 
        member val ProjectLocationAttachmentID:Int32 = new Int32() with get,set
        member val ProjectLocationID:Int32 = new Int32() with get,set
        member val ProjectLocationAreaID:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val Kind:String = null with get,set
        member val DocTitle:String = null with get,set
        member val FileName:String = null with get,set
        member val Url:String = null with get,set
        member val MimeType:String = null with get,set
        member val UploadDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val UploadedBy:String = null with get,set
        member val Active:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type ProjectLocation() = 
        member val ProjectLocationID:Int32 = new Int32() with get,set
        member val ProjectID:Int32 = new Int32() with get,set
        member val Name:String = null with get,set
        member val Address1:String = null with get,set
        member val Address2:String = null with get,set
        member val City:String = null with get,set
        member val State:String = null with get,set
        member val Zip:String = null with get,set
        member val Latitude:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val Longitude:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val TotalArea:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val AreaUnit:String = null with get,set
        member val AccessInstructions:String = null with get,set
        member val IsPrimary:Boolean = new Boolean() with get,set
        member val DisplayOrder:Int32 = new Int32() with get,set
        member val Active:Boolean = new Boolean() with get,set
        member val CreatedBy:String = null with get,set
        member val CreatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val UpdatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val Areas:ResizeArray<ProjectLocationArea> = new ResizeArray<ProjectLocationArea>() with get,set
        member val Equipment:ResizeArray<ProjectLocationEquipment> = new ResizeArray<ProjectLocationEquipment>() with get,set
        member val SiteDetails:ResizeArray<ProjectLocationSiteDetail> = new ResizeArray<ProjectLocationSiteDetail>() with get,set
        member val Attachments:ResizeArray<ProjectLocationAttachment> = new ResizeArray<ProjectLocationAttachment>() with get,set

    [<AllowNullLiteral>]
    type ProjectLocationResponse() = 
        member val Locations:ResizeArray<ProjectLocation> = new ResizeArray<ProjectLocation>() with get,set
        member val Areas:ResizeArray<ProjectLocationArea> = new ResizeArray<ProjectLocationArea>() with get,set
        member val Equipment:ResizeArray<ProjectLocationEquipment> = new ResizeArray<ProjectLocationEquipment>() with get,set
        member val SiteDetails:ResizeArray<ProjectLocationSiteDetail> = new ResizeArray<ProjectLocationSiteDetail>() with get,set
        member val Attachments:ResizeArray<ProjectLocationAttachment> = new ResizeArray<ProjectLocationAttachment>() with get,set
        member val SiteDetail:ProjectLocationSiteDetail = null with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type ProjectLocationSiteDetailRequest() = 
        member val ProjectLocationSiteDetailID:Int32 = new Int32() with get,set
        member val SiteDetails:ResizeArray<ProjectLocationSiteDetail> = new ResizeArray<ProjectLocationSiteDetail>() with get,set

F# ProjectLocationSiteDetailRequest DTOs

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/projectlocationsitedetail HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ProjectLocationSiteDetailID: 0,
	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
		}
	]
}
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
		}
	}
}