Skip to content
developers
Open TestCollab

Get custom fields count

GET/customfields/count

Get custom fields count

Use resource IDs from your own project. Keep the API token in your server or CI environment.

example.ts
import { createConfiguration, CustomFieldsApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new CustomFieldsApi(config);
const result = await api.getCustomFieldCount({
"company": 123
});
console.log(result);
Name Location Type Required Description
company query integer Yes Company ID

200 — Count of custom fields

Field Type Required Description
count number Yes —
Illustrative response
{
"count": 123
}
Status Meaning
403 Forbidden