Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
DELETE | /schedules/date/{Id} | Remove a date schedule | Remove date schedule. |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | query | Guid? | No | The company id, if empty will use the company id for the user you are logged in with. |
Id | path | int | Yes | The schedule id |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | The schedule id |
Name | form | string | No | Name of the schedule |
Description | form | string | No | Description of the schedule |
Active | form | bool | No | If the schedule is active or not |
IsResourceSpecific | form | bool? | Yes | If the schedule is only connected to some specific resources. Note: You must have IncludeResources property to see this. |
ScheduleDates | form | List<DateScheduleDateResponse> | No | Schedule dates |
Resources | form | List<ScheduleResources> | No | The resources that is connected to the schedule |
Services | form | List<ScheduleServices> | No | The services that is connected to the schedule |
UpdatedDate | form | DateTime | Yes | The timestamp when the schedule was updated |
CreatedDate | form | DateTime | Yes | The timestamp when the schedule was created |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | |
From | form | DateTime | No | |
To | form | DateTime | No | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | |
Name | form | string | No | Name of the resource |
ImageUrl | form | Uri | No | The image url of the resource |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | |
Name | form | string | No | Name of the service |
ImageUrl | form | Uri | No | The 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
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"}}}