| Required roles: | Administrator, Administrator, Administrator |
| GET,POST,PUT,DELETE,OPTIONS | /v1/Lines/{Id} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/LinesByLocationId/{LocationId} | ||
| GET,POST,PUT,DELETE,OPTIONS | /v1/Lines |
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 LineImage() =
member val ImageId:Nullable<Guid> = new Nullable<Guid>() with get,set
member val FileName:String = null with get,set
member val ImageTitle:String = null with get,set
member val UploadDate:DateTime = new DateTime() with get,set
[<AllowNullLiteral>]
type Line() =
member val Id:Guid = new Guid() with get,set
member val LocationId:Guid = new Guid() with get,set
member val LocationName:String = null with get,set
member val Name:String = null with get,set
member val Description:String = null with get,set
member val ServiceDurationMinutes:Int32 = new Int32() with get,set
member val WaitTime:Int32 = new Int32() with get,set
member val Cost:Decimal = new Decimal() with get,set
member val UpperThreshold:Nullable<Int32> = new Nullable<Int32>() with get,set
member val LowerThreshold:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Active:Boolean = new Boolean() with get,set
member val EntDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ModDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val SendQuestionnaire:Boolean = new Boolean() with get,set
member val RequireUpload:Boolean = new Boolean() with get,set
member val UploadMessage:String = null with get,set
member val LineImages:ResizeArray<LineImage> = new ResizeArray<LineImage>() with get,set
[<AllowNullLiteral>]
type LinesResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val Lines:ResizeArray<Line> = new ResizeArray<Line>() with get,set
[<AllowNullLiteral>]
type LinesRequest() =
member val Id:Guid = new Guid() with get,set
member val LocationId:Guid = new Guid() with get,set
member val Lines:ResizeArray<Line> = new ResizeArray<Line>() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Lines/{Id} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Id":"00000000000000000000000000000000","LocationId":"00000000000000000000000000000000","Lines":[{"Id":"00000000000000000000000000000000","LocationId":"00000000000000000000000000000000","LocationName":"String","Name":"String","Description":"String","ServiceDurationMinutes":0,"WaitTime":0,"Cost":0,"UpperThreshold":0,"LowerThreshold":0,"Active":false,"EntDate":"0001-01-01T00:00:00.0000000","ModDate":"0001-01-01T00:00:00.0000000","SendQuestionnaire":false,"RequireUpload":false,"UploadMessage":"String","LineImages":[{"ImageId":"00000000000000000000000000000000","FileName":"String","ImageTitle":"String","UploadDate":"0001-01-01T00:00:00.0000000"}]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Lines":[{"Id":"00000000000000000000000000000000","LocationId":"00000000000000000000000000000000","LocationName":"String","Name":"String","Description":"String","ServiceDurationMinutes":0,"WaitTime":0,"Cost":0,"UpperThreshold":0,"LowerThreshold":0,"Active":false,"EntDate":"0001-01-01T00:00:00.0000000","ModDate":"0001-01-01T00:00:00.0000000","SendQuestionnaire":false,"RequireUpload":false,"UploadMessage":"String","LineImages":[{"ImageId":"00000000000000000000000000000000","FileName":"String","ImageTitle":"String","UploadDate":"0001-01-01T00:00:00.0000000"}]}]}