| 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 .xml suffix or ?format=xml
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: testapi.bokamera.se Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CustomFieldSlotsQueryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos"> <Datatype>String</Datatype> <Id>0</Id> <Name>String</Name> <Occupied>false</Occupied> <Table>String</Table> </CustomFieldSlotsQueryResponse>