lessons
GET
https://linkyhub.net/api/v3 /products/{productId}/lessons Scope products:readA course’s lessons, in order.
Parameters
productIdstringpathrequiredCode samples
cURL
curl -X GET "https://linkyhub.net/api/v3/products/{productId}/lessons" \
-H "Authorization: Bearer $LINKYHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
Example
{
"data": [
{}
]
}Schema
dataobject[]requiredHeaders
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Example
{
"error": "string",
"message": "string"
}Schema
errorstringrequiredA stable code to branch on, e.g. insufficient_scope.
messagestringrequiredA sentence to show a person.
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /products/{productId}/lessons Scope products:writeAdd a lesson at the end. A digital download becomes a course.
Parameters
productIdstringpathrequiredRequest body
application/json
titlestringrequiredbodystringvideoUrlstringisPreviewbooleanReadable by anyone, as the course sample.
{
"title": "string",
"body": "string",
"videoUrl": "string",
"isPreview": true
}Code samples
cURL
curl -X POST "https://linkyhub.net/api/v3/products/{productId}/lessons" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"string","body":"string","videoUrl":"string","isPreview":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /products/{productId}/lessons
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
DELETE
https://linkyhub.net/api/v3 /lessons/{lessonId} Scope products:writeDelete a lesson.
Parameters
lessonIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://linkyhub.net/api/v3/lessons/{lessonId}" \
-H "Authorization: Bearer $LINKYHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /products/{productId}/lessons
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
PATCH
https://linkyhub.net/api/v3 /lessons/{lessonId} Scope products:writeChange a lesson. Only the fields sent change; null clears body or video.
Parameters
lessonIdstringpathrequiredRequest body
application/json
titlestringbodystringvideoUrlstringisPreviewbooleanReadable by anyone, as the course sample.
{
"title": "string",
"body": "string",
"videoUrl": "string",
"isPreview": true
}Code samples
cURL
curl -X PATCH "https://linkyhub.net/api/v3/lessons/{lessonId}" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"string","body":"string","videoUrl":"string","isPreview":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /products/{productId}/lessons
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /lessons/{lessonId}/move Scope products:writeMove a lesson between two others of the same course (null for either end).
Parameters
lessonIdstringpathrequiredRequest body
application/json
beforeIdstringrequiredafterIdstringrequired{
"beforeId": "string",
"afterId": "string"
}Code samples
cURL
curl -X POST "https://linkyhub.net/api/v3/lessons/{lessonId}/move" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"beforeId":"string","afterId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /products/{productId}/lessons
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
Updated