BokaMera.API.Host

<back to all web services

DeleteDateSchedule

Requires Authentication
Requires any of the roles:bookingsupplier-administrator-write, superadmin
The following routes are available for this service:
DELETE/schedules/date/{Id}Remove a date scheduleRemove date schedule.
namespace BokaMera.API.ServiceModel.Dtos

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

    [<AllowNullLiteral>]
    type DateScheduleDateResponse() = 
        member val Id:Int32 = new Int32() with get,set
        member val From:DateTime = new DateTime() with get,set
        member val To:DateTime = new DateTime() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type ScheduleResources() = 
        member val Id:Int32 = new Int32() with get,set
        ///<summary>
        ///Name of the resource
        ///</summary>
        [<ApiMember(Description="Name of the resource")>]
        member val Name:String = null with get,set

        ///<summary>
        ///The image url of the resource
        ///</summary>
        [<ApiMember(Description="The image url of the resource")>]
        member val ImageUrl:Uri = null with get,set

    [<AllowNullLiteral>]
    type ScheduleServices() = 
        member val Id:Int32 = new Int32() with get,set
        ///<summary>
        ///Name of the service
        ///</summary>
        [<ApiMember(Description="Name of the service")>]
        member val Name:String = null with get,set

        ///<summary>
        ///The image url of the service
        ///</summary>
        [<ApiMember(Description="The image url of the service")>]
        member val ImageUrl:Uri = null with get,set

    [<AllowNullLiteral>]
    type DateScheduleQueryResponse() = 
        ///<summary>
        ///The schedule id
        ///</summary>
        [<ApiMember(Description="The schedule id")>]
        member val Id:Int32 = new Int32() with get,set

        ///<summary>
        ///Name of the schedule
        ///</summary>
        [<ApiMember(Description="Name of the schedule")>]
        member val Name:String = null with get,set

        ///<summary>
        ///Description of the schedule
        ///</summary>
        [<ApiMember(Description="Description of the schedule")>]
        member val Description:String = null with get,set

        ///<summary>
        ///If the schedule is active or not
        ///</summary>
        [<ApiMember(Description="If the schedule is active or not")>]
        member val Active:Boolean = new Boolean() with get,set

        ///<summary>
        ///If the schedule is only connected to some specific resources. Note: You must have IncludeResources property to see this.
        ///</summary>
        [<ApiMember(Description="If the schedule is only connected to some specific resources. Note: You must have IncludeResources property to see this.", IsRequired=true)>]
        member val IsResourceSpecific:Nullable<Boolean> = new Nullable<Boolean>() with get,set

        ///<summary>
        ///Schedule dates
        ///</summary>
        [<ApiMember(Description="Schedule dates")>]
        member val ScheduleDates:ResizeArray<DateScheduleDateResponse> = new ResizeArray<DateScheduleDateResponse>() with get,set

        ///<summary>
        ///The resources that is connected to the schedule
        ///</summary>
        [<ApiMember(Description="The resources that is connected to the schedule")>]
        member val Resources:ResizeArray<ScheduleResources> = new ResizeArray<ScheduleResources>() with get,set

        ///<summary>
        ///The services that is connected to the schedule
        ///</summary>
        [<ApiMember(Description="The services that is connected to the schedule")>]
        member val Services:ResizeArray<ScheduleServices> = new ResizeArray<ScheduleServices>() with get,set

        ///<summary>
        ///The timestamp when the schedule was updated
        ///</summary>
        [<ApiMember(Description="The timestamp when the schedule was updated", IsRequired=true)>]
        member val UpdatedDate:DateTime = new DateTime() with get,set

        ///<summary>
        ///The timestamp when the schedule was created
        ///</summary>
        [<ApiMember(Description="The timestamp when the schedule was created", IsRequired=true)>]
        member val CreatedDate:DateTime = new DateTime() with get,set

        member val ResponseStatus:ResponseStatus = null with get,set

    [<ValidateRequest(Validator="IsAuthenticated")>]
    [<AllowNullLiteral>]
    type DeleteDateSchedule() = 
        ///<summary>
        ///The company id, if empty will use the company id for the user you are logged in with.
        ///</summary>
        [<ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")>]
        member val CompanyId:Nullable<Guid> = new Nullable<Guid>() with get,set

        ///<summary>
        ///The schedule id
        ///</summary>
        [<ApiMember(Description="The schedule id", IsRequired=true, ParameterType="path")>]
        member val Id:Int32 = new Int32() with get,set

F# DeleteDateSchedule DTOs

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

HTTP + JSON

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

DELETE /schedules/date/{Id} HTTP/1.1 
Host: api.bokamera.se 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":0,"Name":"String","Description":"String","Active":false,"IsResourceSpecific":false,"ScheduleDates":[{"Id":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}],"Resources":[{"Id":0,"Name":"String"}],"Services":[{"Id":0,"Name":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}