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.
DeleteDateSchedule Parameters:
NameParameterData TypeRequiredDescription
CompanyIdqueryGuid?NoThe company id, if empty will use the company id for the user you are logged in with.
IdpathintYesThe schedule id
DateScheduleQueryResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNoThe schedule id
NameformstringYesName of the schedule
DescriptionformstringYesDescription of the schedule
ActiveformboolNoIf the schedule is active or not
IsResourceSpecificformbool?YesIf the schedule is only connected to some specific resources. Note: You must have IncludeResources property to see this.
ScheduleDatesformList<DateScheduleDateResponse>YesSchedule dates
ResourcesformList<ScheduleResources>YesThe resources that is connected to the schedule
ServicesformList<ScheduleServices>YesThe services that is connected to the schedule
UpdatedDateformDateTimeYesThe timestamp when the schedule was updated
CreatedDateformDateTimeYesThe timestamp when the schedule was created
ResponseStatusformResponseStatusYes
DateScheduleDateResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
FromformDateTimeNo
ToformDateTimeNo
ResponseStatusformResponseStatusYes
ScheduleResources Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringYesName of the resource
ImageUrlformUriYesThe image url of the resource
ScheduleServices Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringYesName of the service
ImageUrlformUriYesThe image url of the service

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: testapi.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"}}}