Create Learning Custom Field
Create a custom field in the learning platform.
Authentication
Api-Keystring
API key of the organization. Always sent together with the Secret-Access header.
Path parameters
organization_slug
Headers
Secret-Access
Request
This endpoint expects an object.
customFieldTypeId
The ID of the custom field type. It is recommended to use a UUID (Universally Unique Identifier) to ensure uniqueness and consistency, e.g., 26589613-b8fc-4f66-826b-c33144ca8935.
customFieldType
The type of the custom field. Available types are:
- TEXT: Requires
maxLength. - NUMBER: No additional fields required.
- DATE: No additional fields required.
- LIST: Requires
optionsandisMultiple.
name
The name of the custom field.
description
A description of the custom field.
maxLength
Required if customFieldType is TEXT.
options
Required if customFieldType is LIST. Each item in the list must be a dictionary with a single key-value pair.
isMultiple
Required if customFieldType is LIST. Indicates if multiple values are allowed.
Response
Custom field created successfully
originalId
name
slug
organizationId
description
Description of the custom field.
maxLength
customFieldType
Errors
400
Bad Request Error
422
Unprocessable Entity Error
