UpdateElearning
PATCH /tp-api/e-learning/:courseId
Update an e-learning course.
Path Parameters
- courseId string required
E-learning courseId ID.
Header Parameters
- training-provider-id string required
- application/json
Request Body
- publish boolean
Whether or not this course should be published to a marketplace.Note: E-learning cannot be published without an
externalRegistrationUrl
externalRegistrationUrl object
- anyOf
- MOD1
string uriExternal registration URL.Note: you cannot remove the
externalRegistrationUrl
of a published course- anyOf
Responses
- 200
- 400
Default Response
- application/json
- Schema
- Example (from schema)
Schema
- id string required
E-learning id
- certificateExpiry number
E-learning license expiry
- courseDuration number
E-learning duration
deliveryMethod object required
Course delivery method
- anyOf
- MOD1
- MOD2
- MOD3
stringPossible values: [
OFFLINE
]stringPossible values: [
VIRTUAL
]stringPossible values: [
E-LEARNING
]- anyOf
- description string required
E-learning description
- externalRegistrationUrl string
E-learning external registration url
- licenseDuration number
E-learning license duration
- name string required
E-Learning name
- price number required
E-learning price
- publishedToMarketplace boolean required
Whether or not the course should appear in a marketplace
{
"id": "string",
"certificateExpiry": 0,
"courseDuration": 0,
"deliveryMethod": "OFFLINE",
"description": "string",
"externalRegistrationUrl": "string",
"licenseDuration": 0,
"name": "string",
"price": 0,
"publishedToMarketplace": true
}
Default Response
- application/json
- Schema
- Example (from schema)
Schema
- anyOf
- MOD1
- MOD2
statusCode number requiredcode stringError code
error string requiredError key
message string requiredError message
error object required
key string requiredError key
message string requiredError message
{
"statusCode": 0,
"code": "string",
"error": "string",
"message": "string"
}
Loading...