Skip to main content

Certificate

The certificate is the template printed when a learner earns a certificate on a course. These routes stay at /players/{id}/certificate.

Overview​

Get Certificate returns the unpublished template, or the live template when nothing is unpublished. The response has no preview_url. When no template has been saved, the response is the starting values and that read does not store a template.

Update Certificate writes only the keys you send. content merges the same way. The first successful update stores the template. The write does not publish: on a published course it saves pending edits. The response is the full template plus preview_url. Visitors see the change when you publish. See Draft, preview, and publish and Updates.

include=certificate on Get Course returns the same template. Leave certificate out of include and the key stays null.

The same template can be set on Create Course and Update Course. Those are draft writes too.

A course id that is missing or not a UUID returns 404. See Identifiers.

Endpoints​

MethodEndpointDescription
GET/players/{id}/certificateGet the certificate template
PATCH/players/{id}/certificateUpdate the certificate template

Certificate Object​

The certificate template for the course. Get Certificate returns the starting values below when no template has been saved, and that read does not store one. The first successful update stores the template.

FieldTypeDescription
is_activeboolean|nullWhether the template is active. null clears it. Starts null.
progress_threshold_percentintegerProgress required before the certificate can be issued, from 0 to 100. 0 is valid. Starts at 80.
available_fromstring|nullFirst day the certificate can be issued, YYYY-MM-DD. null clears it. Starts null.
templatestringlight-image, light-waves, light-stripes, dark-stripes, dark-dots, or custom. Starts as light-image.
contentobjectContent Object

Content Object​

Every key is present. null clears that key.

FieldTypeDescription
course_namestring|nullName printed on the certificate. Starts null.
course_descriptionstring|nullDescription printed on the certificate. Starts null.
course_image_urlstring|nullCourse image address. Starts null.
background_image_urlstring|nullBackground image address. Starts null.
colorstring|nullAccent color. Starts null.
text_colorstring|nullText color. Starts null.