| Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
| GET | /customfields/slots | Find all slots to store custom fields data in | Get all available slots that are available to store data in |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CompanyId | query | Guid? | No | Company id to find custom fields for |
| Table | query | string | Yes | Table to which the field belongs |
| FreeSlots | query | bool? | No | If you want to receive only free slots (not occupied). |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Table | form | string | Yes | Table to which the field belongs |
| Id | form | int | No | Custom field id |
| Name | form | string | Yes | Custom field column name |
| Datatype | form | string | Yes | The field datatype |
| Occupied | form | bool | No | If the slot is free or occupied |
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.
GET /customfields/slots HTTP/1.1 Host: api.bokamera.se Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Table":"String","Id":0,"Name":"String","Datatype":"String","Occupied":false}