| POST | /v1/projectlocation/attachment |
|---|
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 ProjectLocationAttachmentRequest() =
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
F# ProjectLocationAttachmentRequest DTOs
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 /v1/projectlocation/attachment HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ProjectLocationAttachmentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<DocTitle>String</DocTitle>
<Kind>String</Kind>
<ProjectLocationAreaID>0</ProjectLocationAreaID>
<ProjectLocationID>0</ProjectLocationID>
</ProjectLocationAttachmentRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ProjectLocationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Areas>
<ProjectLocationArea>
<Active>false</Active>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<DisplayOrder>0</DisplayOrder>
<Measurement>0</Measurement>
<MeasurementUnit>String</MeasurementUnit>
<Name>String</Name>
<Notes>String</Notes>
<ProjectLocationAreaID>0</ProjectLocationAreaID>
<ProjectLocationID>0</ProjectLocationID>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
</ProjectLocationArea>
</Areas>
<Attachments>
<ProjectLocationAttachment>
<Active>false</Active>
<DocTitle>String</DocTitle>
<FileName>String</FileName>
<Kind>String</Kind>
<MimeType>String</MimeType>
<ProjectLocationAreaID>0</ProjectLocationAreaID>
<ProjectLocationAttachmentID>0</ProjectLocationAttachmentID>
<ProjectLocationID>0</ProjectLocationID>
<UploadDate>0001-01-01T00:00:00</UploadDate>
<UploadedBy>String</UploadedBy>
<Url>String</Url>
</ProjectLocationAttachment>
</Attachments>
<Equipment>
<ProjectLocationEquipment>
<Active>false</Active>
<AssetTag>String</AssetTag>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<Description>String</Description>
<Manufacturer>String</Manufacturer>
<Model>String</Model>
<Name>String</Name>
<Notes>String</Notes>
<ProjectLocationEquipmentID>0</ProjectLocationEquipmentID>
<ProjectLocationID>0</ProjectLocationID>
<SerialNumber>String</SerialNumber>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
</ProjectLocationEquipment>
</Equipment>
<Locations>
<ProjectLocation>
<AccessInstructions>String</AccessInstructions>
<Active>false</Active>
<Address1>String</Address1>
<Address2>String</Address2>
<AreaUnit>String</AreaUnit>
<Areas>
<ProjectLocationArea>
<Active>false</Active>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<DisplayOrder>0</DisplayOrder>
<Measurement>0</Measurement>
<MeasurementUnit>String</MeasurementUnit>
<Name>String</Name>
<Notes>String</Notes>
<ProjectLocationAreaID>0</ProjectLocationAreaID>
<ProjectLocationID>0</ProjectLocationID>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
</ProjectLocationArea>
</Areas>
<Attachments>
<ProjectLocationAttachment>
<Active>false</Active>
<DocTitle>String</DocTitle>
<FileName>String</FileName>
<Kind>String</Kind>
<MimeType>String</MimeType>
<ProjectLocationAreaID>0</ProjectLocationAreaID>
<ProjectLocationAttachmentID>0</ProjectLocationAttachmentID>
<ProjectLocationID>0</ProjectLocationID>
<UploadDate>0001-01-01T00:00:00</UploadDate>
<UploadedBy>String</UploadedBy>
<Url>String</Url>
</ProjectLocationAttachment>
</Attachments>
<City>String</City>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<DisplayOrder>0</DisplayOrder>
<Equipment>
<ProjectLocationEquipment>
<Active>false</Active>
<AssetTag>String</AssetTag>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<Description>String</Description>
<Manufacturer>String</Manufacturer>
<Model>String</Model>
<Name>String</Name>
<Notes>String</Notes>
<ProjectLocationEquipmentID>0</ProjectLocationEquipmentID>
<ProjectLocationID>0</ProjectLocationID>
<SerialNumber>String</SerialNumber>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
</ProjectLocationEquipment>
</Equipment>
<IsPrimary>false</IsPrimary>
<Latitude>0</Latitude>
<Longitude>0</Longitude>
<Name>String</Name>
<ProjectID>0</ProjectID>
<ProjectLocationID>0</ProjectLocationID>
<SiteDetails>
<ProjectLocationSiteDetail>
<Active>false</Active>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<DetailType>String</DetailType>
<DisplayOrder>0</DisplayOrder>
<EncVersion>0</EncVersion>
<HasValue>false</HasValue>
<IsSensitive>false</IsSensitive>
<Label>String</Label>
<Notes>String</Notes>
<ProjectLocationID>0</ProjectLocationID>
<ProjectLocationSiteDetailID>0</ProjectLocationSiteDetailID>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
<Value>String</Value>
</ProjectLocationSiteDetail>
</SiteDetails>
<State>String</State>
<TotalArea>0</TotalArea>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
<Zip>String</Zip>
</ProjectLocation>
</Locations>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<SiteDetail>
<Active>false</Active>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<DetailType>String</DetailType>
<DisplayOrder>0</DisplayOrder>
<EncVersion>0</EncVersion>
<HasValue>false</HasValue>
<IsSensitive>false</IsSensitive>
<Label>String</Label>
<Notes>String</Notes>
<ProjectLocationID>0</ProjectLocationID>
<ProjectLocationSiteDetailID>0</ProjectLocationSiteDetailID>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
<Value>String</Value>
</SiteDetail>
<SiteDetails>
<ProjectLocationSiteDetail>
<Active>false</Active>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<DetailType>String</DetailType>
<DisplayOrder>0</DisplayOrder>
<EncVersion>0</EncVersion>
<HasValue>false</HasValue>
<IsSensitive>false</IsSensitive>
<Label>String</Label>
<Notes>String</Notes>
<ProjectLocationID>0</ProjectLocationID>
<ProjectLocationSiteDetailID>0</ProjectLocationSiteDetailID>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
<Value>String</Value>
</ProjectLocationSiteDetail>
</SiteDetails>
</ProjectLocationResponse>