UpdateClass
PATCH /tp-api/classes/:classId
Update an in-person or virtual instructor-led class.
Path Parameters
- classId string required
Class ID.
Header Parameters
- training-provider-id string required
- application/json
Request Body
address object
countryCode stringPossible values:
>= 2 characters
and<= 2 characters
2 Letter country code
district stringDistrict name
extendedAddress stringAddress line 2
locality stringAddress locality
name stringLocation name or Site name
postOfficeBox stringPost office box
postalCode stringPostal code
region stringRegion name
streetAddress stringAddress line 1
contact object
email stringContact email
fax stringContact fax
name stringContact name
telephone stringContact phone
- evaluatorIds string[]
- instructorIds string[]
- price number
Class price
- publishInMarketplace boolean
Flag to publish to market
schedule object[]
Update class schedule
For example, existing schedules:
[
{id: 1000, start: '2022-01-21T04:00:06.902Z', end: '2022-01-22T04:00:06.902Z'},
{id: 2000, start: '2022-01-23T04:00:06.902Z', end: '2022-01-24T04:00:06.902Z'}
]
New schedules:
[
{id: 1000, start: '2022-01-21T04:00:06.902Z', end: '2022-01-23T05:00:06.902Z'},
{start: '2022-01-25T04:00:06.902Z', end: '2022-01-26T04:00:06.902Z'}
]
Explanation:
1. schedule 1000 will be removed and new schedule will be created with given 'start'
and 'end' value
2. schedule 2000 will removed
3. new schedule will be added with given 'start' and 'end'Array [id stringEvent ID
start date-time requiredEvent start time
end date-time requiredEvent end time
]- showPriceInMarketplace boolean
Flag to show price in marketplace
- specialInstructions string
Special instructions
- timezone string
Class Timezone
- totalSeats integer
Possible values:
>= 1
Total seats in class
- virtualClassURL uri
Virtual class url.
Responses
- 200
- 400
Default Response
- application/json
- Schema
- Example (from schema)
Schema
- id string required
{
"id": "string"
}
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...