Learn

This document uses the REST API. For more details, see the Authentication for API page.

Get individual user learning progress (Early Access)

get

Retrieves detailed learning progress status per user, including completion dates and history for each catalog resource.

Required permissions

  • View Organization Snyk Learn Reports (org.learn_report.read)
Authorizations
AuthorizationstringRequired

API key value must be prefixed with "Token ".

Path parameters
org_idstring · uuidRequired

The unique identifier of the organization.

Query parameters
versionstringRequired

Requested API version

Default: 2024-05-13~experimentalExample: 2024-05-13~experimentalPattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
limitinteger · int32 · min: 10 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
typestring · enumOptional

Filter by the learn catalog resource type

Default: lessonPossible values:
titlestringOptionalDeprecated

This is deprecated, use Titles instead

titlesstring[] · min: 1 · max: 50Optional

Filter by the title of the learning path or lesson resource

statusstring · enumOptional

Filter by progress status of the resources

Possible values:
emailsstring · email[] · min: 1 · max: 50Optional

Filter by user email addresses

Example: ["[email protected]","[email protected]"]
completion_intervalstringOptional

Filter by date interval in ISO 8601 format (e.g. 2024-01-01/2024-02-01)

Pattern: ^[\d]{4}-[\d]{2}-[\d]{2}/[\d]{4}-[\d]{2}-[\d]{2}$
Responses
get
/orgs/{org_id}/learn/progress/users

Get collective learning progress (Early Access)

get

Retrieves aggregated counts of users' lesson or learning path statuses (completed, in progress, todo) across all catalog resources for an organization.

Required permissions

  • View Organization Snyk Learn Reports (org.learn_report.read)
Authorizations
AuthorizationstringRequired

API key value must be prefixed with "Token ".

Path parameters
org_idstring · uuidRequired

The unique identifier of the organization.

Query parameters
versionstringRequired

Requested API version

Default: 2024-05-13~experimentalExample: 2024-05-13~experimentalPattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
limitinteger · int32 · min: 10 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
typestring · enumOptional

Filter by the learn catalog resource type

Default: lessonPossible values:
titlestringOptionalDeprecated

This is deprecated, use Titles instead

cwesstring[] · min: 1 · max: 50Optional

Filter by CWE rules

cvesstring[] · min: 1 · max: 50Optional

Filter by CVE rules

Responses
get
/orgs/{org_id}/learn/progress/catalog

Bulk creation of assignments for users in an organization. (Early Access)

post

Allows an admin to create assignments in bulk for all or a subset of users within their organization.

Required permissions

  • Create assignments (org.learn_assignment.create)
Authorizations
AuthorizationstringRequired

API key value must be prefixed with "Token ".

Path parameters
org_idstring · uuidRequired

The unique identifier of the organization.

Query parameters
versionstringRequired

Requested API version

Default: 2024-05-13~experimentalExample: 2024-05-13~experimentalPattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
contact_emailstring · emailOptional

Custom contact email to display in email templates when customized_contact_details is true

contact_namestringOptional

Custom contact name to display in email templates when customized_contact_details is true

customized_contact_detailsbooleanOptional

Flag to indicate if custom contact details should be used in email templates

Default: false
due_datestring · dateOptional
email_custom_messagestringOptional

Custom message given by assignment creator for email notification.

email_notificationbooleanOptional

Email notification is enabled or not for new assignment creation

email_receive_copybooleanOptional

Assigner will receive a copy of the email

reset_learning_progressbooleanOptional

Global flag to reset progress for all lesson assignments in the request

reset_progress_beforestring · dateOptional

Reset progress for all lesson assignments before this date (exclusive)

Responses
204

Assignments were successfully created.

post
/orgs/{org_id}/learn/assignments

No content

Update due date for assignments in an organization. (Early Access)

patch

Allows an admin to update the due date for existing assignments within their organization.

Required permissions

  • Edit assignments (org.learn_assignment.edit)
Authorizations
AuthorizationstringRequired

API key value must be prefixed with "Token ".

Path parameters
org_idstring · uuidRequired

The unique identifier of the organization.

Query parameters
versionstringRequired

Requested API version

Default: 2024-05-13~experimentalExample: 2024-05-13~experimentalPattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
204

Assignments due date was successfully updated.

patch
/orgs/{org_id}/learn/assignments

No content

Retrieve a list of assignments for an organization (Early Access)

get

Allows an admin to obtain a comprehensive list of all assignments within their organization.

Required permissions

  • View Organization assignments (org.learn_assignment.read)
Authorizations
AuthorizationstringRequired

API key value must be prefixed with "Token ".

Path parameters
org_idstring · uuidRequired

The unique identifier of the organization.

Query parameters
versionstringRequired

Requested API version

Default: 2024-05-13~experimentalExample: 2024-05-13~experimentalPattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
limitinteger · int32 · min: 10 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
Responses
get
/orgs/{org_id}/learn/assignments

Bulk deletion of assignments in an organization (Early Access)

delete

Allows an admin to delete multiple assignments within their organization.

Note: Assignments that are part of a Learning Program cannot be deleted through this endpoint.

Required permissions

  • Delete assignments (org.learn_assignment.delete)
Authorizations
AuthorizationstringRequired

API key value must be prefixed with "Token ".

Path parameters
org_idstring · uuidRequired

The unique identifier of the organization.

Query parameters
versionstringRequired

Requested API version

Default: 2024-05-13~experimentalExample: 2024-05-13~experimentalPattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
204

Assignments were successfully deleted.

delete
/orgs/{org_id}/learn/assignments

No content

List Snyk Learn's resources (Early Access)

get

List Snyk Learn's catalog resources

Authorizations
AuthorizationstringRequired

API key value must be prefixed with "Token ".

Query parameters
versionstringRequired

Requested API version

Default: 2024-05-13~experimentalExample: 2024-05-13~experimentalPattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
content_sourcestring · enumOptional

The source of educational resources

Possible values:
limitinteger · int32 · min: 10 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
Responses
get
/learn/catalog

Last updated

Was this helpful?