| Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
| POST | /schedules/date/test | Test date schedule | Test date schedule, only administrators are allowed to test schedules. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CompanyId | body | Guid? | No | The company id, if empty will use the company id for the user you are logged in with. |
| ScheduleDates | body | List<AddDateScheduleDate> | Yes | The dates for the schedule. This is the actual timeslots. |
| From | query | dateTime | Yes | From what datetime to show available times |
| To | query | dateTime | Yes | To what datetime to show available times |
| ServiceId | body | int? | No | The Service Duration |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| From | form | DateTime | Yes | The from date for the timeslot |
| To | form | DateTime | Yes | The to date for the timeslot |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CompanyId | form | Guid | No | |
| ServiceId | form | int | No | |
| TimesFreeTextSingle | form | string | Yes | |
| TimesFreeTextMultiple | form | string | Yes | |
| Times | form | List<AvailableTimesSum> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| From | form | DateTime | No | |
| To | form | DateTime | No | |
| Free | form | int | No | |
| FreeSpots | form | int | No | |
| ExceptionTexts | form | IEnumerable<ExceptionText> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Reason | form | string | Yes | |
| ReasonPublic | form | string | Yes |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /schedules/date/test HTTP/1.1
Host: api.bokamera.se
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"CompanyId":"00000000-0000-0000-0000-000000000000","ScheduleDates":[{}],"ServiceId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ServiceId":0,"TimesFreeTextSingle":"String","TimesFreeTextMultiple":"String","Times":[{"Free":0,"FreeSpots":0}]}