Go-to-Light Service 4.0.0.2397 - 121 - API License to Cloud Demo

<back to all web services

AddBox

Requires Authentication
The following routes are available for this service:
All Verbs/AddBox
namespace GoToLightAPI

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

    [<AllowNullLiteral>]
    type AddBox() = 
        ///<summary>
        ///Name of the box
        ///</summary>
        [<ApiMember(Description="Name of the box", IsRequired=true)>]
        member val Name:String = null with get,set

        ///<summary>
        ///Size X of the box in cm
        ///</summary>
        [<ApiMember(Description="Size X of the box in cm", IsRequired=true)>]
        member val SizeXcm:Double = new Double() with get,set

        ///<summary>
        ///Size Y of the box in cm
        ///</summary>
        [<ApiMember(Description="Size Y of the box in cm", IsRequired=true)>]
        member val SizeYcm:Double = new Double() with get,set

        ///<summary>
        ///Size Z of the box in cm
        ///</summary>
        [<ApiMember(Description="Size Z of the box in cm", IsRequired=true)>]
        member val SizeZcm:Double = new Double() with get,set

F# AddBox DTOs

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

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /AddBox HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Name":"String","SizeXcm":0,"SizeYcm":0,"SizeZcm":0}