Task Fields
The task field API suite enables you to manage task-related data in BoldSales. This section describes how to retrieve all fields in the task module.
Get all task fields
get/api/v1/tasks/fieldsRetrieves a list of all fields in the task module, including details such as field IDs, names, and field types.
Code snippet
curl -X 'GET' \
'https://{yourdomain}/api/v1/tasks/fields' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}'
Query parameters
| searchstring | Filters the list of fields by field name or API name. Returns only fields whose field name or API name contains the specified search string. |
Example response
200 Success
{
"data": [
{
"fieldId": 1,
"apiName": "subject",
"fieldName": "Subject",
"placeholderText": "Custom Field Placeholder",
"description": "Description text for custom fields",
"instructions": "Instruction text for Custom Fields",
"isSystemField": true,
"isActive": true,
"fieldTypeId": 1,
"fieldTypeName": "Single-line text",
"showInCreateForm": true,
"isRequired": true,
"options": null
},
{
"fieldId": 2,
"apiName": "status",
"fieldName": "Status",
"placeholderText": "",
"description": "",
"instructions": "",
"isSystemField": true,
"isActive": true,
"fieldTypeId": 11,
"fieldTypeName": "Single-select dropdown",
"showInCreateForm": true,
"isRequired": false,
"options": [
{
"id": 1,
"value": "Open",
"isActive": true
},
{
"id": 2,
"value": "Not started",
"isActive": true
},
{
"id": 3,
"value": "Scheduled",
"isActive": true
}
]
}
]
}