Skip to content

Edit Trails

Endpoint used to edit previously created learning trails in your institution in Toolzz LMS.

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

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
trail_idstringIdentifier of the trail to be edited.Yes
ParameterTypeDescriptionRequired
trail_titlestringTrail title. Maximum of 255 characters.Yes
trail_descriptionstringTrail description.Yes
schoolarraySubdomains of schools where the trail will be available. Array with comma-separated values.Yes
clean_filtersstring0 or null: keep registered filters (default). 1: Clear filters.No
grouparrayArray with group names, comma-separated.No
subgrouparrayArray with subgroup names, comma-separated.No
specialtyarrayArray with specialty names, 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. 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
content_actionint0: Keep current courses/content and add new ones (default). 1: Remove specified courses/content and add new ones. 2: Clear all specified courses/content.No
available_contentstringTrail content items, comma-separated. Each item must be the name or ID of the content.No
available_content_typeintType of content included in available_content, comma-separated. 0: Course type. 1: Content type. Positionally associated with each content in available_content.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_idsarrayClass IDs to be linked to the trail. If trail_is_exclusive is true and class_ids is not provided, classes will be created automatically 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.