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 |
---|
"use strict";
export class CustomFieldSlotsQueryResponse {
/** @param {{Table?:string,Id?:number,Name?:string,Datatype?:string,Occupied?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Table to which the field belongs */
Table;
/**
* @type {number}
* @description Custom field id */
Id;
/**
* @type {string}
* @description Custom field column name */
Name;
/**
* @type {string}
* @description The field datatype */
Datatype;
/**
* @type {boolean}
* @description If the slot is free or occupied */
Occupied;
}
export class CustomFieldSlotsQuery {
/** @param {{CompanyId?:string,Table?:string,FreeSlots?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {?string}
* @description Company id to find custom fields for */
CompanyId;
/**
* @type {string}
* @description Table to which the field belongs */
Table;
/**
* @type {?boolean}
* @description If you want to receive only free slots (not occupied). */
FreeSlots;
}
JavaScript CustomFieldSlotsQuery DTOs
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: api.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>