Skip to content

Create Trails

Endpoint used to create new learning trails in your institution in Toolzz LMS.

Terminal window
curl --request POST \
--url 'https://kong.api.toolzz.com.br/api/content/trail/new_trail' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"trail_title": "<string>",
"trail_description": "<string>",
"group": [],
"school": [],
"available_content": "<string>",
"available_content_type": [0, 1]
}'
{
"data": {
"id": 123,
"trail_title": "<string>",
"status": "published"
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
trail_titlestringTrail title. Maximum of 255 characters.Yes
trail_descriptionstringTrail description.Yes
grouparrayArray of groups by name, comma-separated.Yes
schoolarraySubdomains of schools where the trail will be available. Array with comma-separated values.Yes
available_contentstringTrail content items, comma-separated. Each item must be the name or ID of the content.Yes
available_content_typearray[int]Type of content included in available_content, comma-separated. Each item must be 0 (course type) or 1 (content type), positionally associated with each content item in available_content. E.g., for Course 01, Content 01, declare as 0,1.Yes
subgrouparrayArray of subgroups by name, comma-separated.No
specialtyarrayArray of specialties by name, comma-separated.No
trail_start_datedateTrail start date. Must be equal to or after the current date.No
trail_end_datedateTrail end date. Must be after trail_start_date.No
workloadintWorkload in hours. Must be greater than 0.No
certificatestringCertificate awarded in the trail. Maximum of 255 characters for name or certificate ID.No
progression_criteriaintProgression criteria. 0: No criteria. 1: Sequential. 2: By period. 3: By performance.No
volumeintInteger representing the volume. Must be between 1 and 10.No
tagarrayTags, comma-separated.No
trail_viewintTrail visual. 0: Standard view. 1: Gamified view.No
coverstringCover image URL. Must be in ‘jpeg’, ‘png’, or ‘jpg’ format and max 4096 KB. If not provided, the institution logo will be used.No
days_to_releaseintDays to release the next content. Required if progression_criteria is 2. Must be greater than 1.No
trail_is_exclusivebooleanDefines if the trail is exclusive.No
class_idsarray[int]Class IDs to be linked to the trail. If trail_is_exclusive is true and class_ids is not provided, classes will be created within the schools specified in school.No

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.