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 | No | |
TimesFreeTextMultiple | form | string | No | |
Times | form | List<AvailableTimesSum> | No |
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> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Reason | form | string | No | |
ReasonPublic | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
Content-Type: text/jsonl
Content-Length: length
{"CompanyId":"00000000-0000-0000-0000-000000000000","ScheduleDates":[{}],"ServiceId":0}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"ServiceId":0,"TimesFreeTextSingle":"String","TimesFreeTextMultiple":"String","Times":[{"Free":0,"FreeSpots":0}]}