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 avaialble 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 | No | Table to which the field belongs |
Id | form | int | No | Custom field id |
Name | form | string | No | Custom field column name |
Datatype | form | string | No | 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 .csv suffix or ?format=csv
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: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Table":"String","Id":0,"Name":"String","Datatype":"String","Occupied":false}