Update Version
Developing
PATCH
/courses/{id}/update-version
courseId
in param: will be used to update to latest published version for a course member and retrun the course.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.aladia.io/v2/courses//update-version' \
--header 'apikey: '
Response Response Example
{
"id": "string",
"owner": {
"id": "string",
"firstName": "string",
"lastName": "string",
"name": "string",
"followers": 0,
"story": {
"status": "string",
"nextStoryId": "string"
},
"online": true,
"email": "string",
"picture": "string"
},
"spaceId": "string",
"chapters": [
"string"
],
"subjects": [
"string"
],
"title": "string",
"color": "string",
"description": "string",
"thumbnail": {
"fileId": "string",
"url": "string",
"metadata": {
"size": 0,
"mimetype": "string",
"name": "string"
}
},
"trailer": {
"fileId": "string",
"url": "string",
"metadata": {
"size": 0,
"mimetype": "string",
"name": "string"
}
},
"trailerImage": {
"fileId": "string",
"url": "string",
"metadata": {
"size": 0,
"mimetype": "string",
"name": "string"
}
},
"duration": 0,
"requirements": [
"string"
],
"objectives": [
"string"
],
"skills": [
"string"
],
"earnings": 0,
"numberOf": {
"observers": 0,
"teachers": 0,
"internalAttendants": 0,
"externalAttendants": 0,
"chapters": 0,
"onDemandLectures": 0,
"liveLectures": 0
},
"type": "string",
"visibility": "string",
"status": "string",
"dates": {
"startDate": "string",
"endDate": "string"
},
"billing": {
"currency": "string",
"paymentModel": "string",
"totalPrice": 0,
"subscriptionFee": 0,
"remainingAmount": 0,
"installmentsAmount": 0,
"lastInstallmentAmount": 0,
"installmentNumber": 0,
"installments": [
"string"
],
"frequency": "string",
"coupons": [
{
"name": "string",
"type": "string",
"showInMarket": true,
"active": true,
"amount": 0,
"expireAt": "string",
"promoCodes": [
{
"code": "string",
"expireAt": "string"
}
]
}
],
"allowSinglePayment": true
},
"seatCount": 0,
"languages": [
{
"id": "string",
"language": "string",
"name": "string"
}
],
"categories": [
{
"id": "string",
"parentId": "string",
"name": "string",
"image": "string",
"proposedUserId": "string",
"status": "string",
"question": 0,
"createdAt": "string",
"updatedAt": "string"
}
],
"subCategories": [
{
"id": "string",
"parentId": "string",
"name": "string",
"image": "string",
"proposedUserId": "string",
"status": "string",
"question": 0,
"createdAt": "string",
"updatedAt": "string"
}
],
"review": {
"ratings": [
{
"star": 0,
"count": 0,
"percentage": 0
}
],
"totalReviews": 0,
"globalRating": 0
},
"role": "string",
"suspend": true,
"createdBy": "string",
"updatedBy": "string",
"calendarId": "string",
"productId": "string",
"createdAt": "string",
"updatedAt": "string",
"folderId": "string",
"buyers": [
"string"
],
"purchased": true,
"members": {
"teachers": [
{
"id": "string",
"fullName": "string",
"picture": "string",
"role": "string",
"online": true,
"lastActivity": "string",
"story": {
"status": "string",
"nextStoryId": "string"
},
"email": "string",
"invited": true,
"invitedAt": "string",
"expiresAt": "string"
}
],
"attendants": [
{
"id": "string",
"fullName": "string",
"picture": "string",
"role": "string",
"online": true,
"lastActivity": "string",
"story": {
"status": "string",
"nextStoryId": "string"
},
"email": "string",
"invited": true,
"invitedAt": "string",
"expiresAt": "string"
}
]
},
"version": {
"id": "string",
"profileId": "string",
"title": "string",
"version": "string",
"description": "string",
"status": "string",
"course": {
"id": "string",
"revision": true
},
"chapters": [
{
"id": "string",
"revision": true,
"lectures": [
{
"id": "string",
"revision": true
}
]
}
],
"subjects": [
{
"id": "string",
"revision": true
}
],
"restored": true,
"original": "string",
"parentId": "string",
"activity": {
"entity": {
"type": "string",
"name": "string"
},
"parent": {
"type": "string",
"name": "string"
},
"fields": [
{
"field": "string",
"current": "string",
"previous": "string"
}
],
"action": "string"
},
"createdAt": "string",
"updatedAt": "string"
},
"certitificateTemplate": {
"name": "string",
"logo": {
"fileId": "string",
"url": "string",
"metadata": {
"size": 0,
"mimetype": "string",
"name": "string"
}
},
"brandColor": "string",
"accentColor": "string",
"signatureName": "string",
"signatoryRole": "string",
"signatureFont": "string",
"useProfilePicture": true
},
"reviewCompletion": 0,
"coupon": {
"type": "string",
"discountAmount": 0,
"totalDiscountedAmount": 0,
"discountDaysLeft": 0
},
"versionId": "string",
"newUpdate": true
}
Request
Path Params
id
stringย
required
Header Params
apikey
stringย
optional
Example:
{{apikey}}
Responses
Modified atย 2025-04-08 15:33:51