Skip to content
Pasqal Documentation

Update Progress For User And Package

PUT
/api/v1/learners/me/{package}

Update the progress for the current user.

Args: package: The package to update the learner for. updated_learner: The schema containing updated progress.

Returns: QueryResults: The learner.

Parameters

Path Parameters

package
required
ProjectPackage

An enumeration.

string
Allowed values: QUANTUM_DISCOVERY QUANTUM_DISCOVERY_CHEMISTRY QUANTUM_DISCOVERY_LIGHT QUANTUM_DISCOVERY_PLAY QUANTUM_DISCOVERY_ESSENTIAL LEARN_BY_CODING VQPU

Request Body required

UpdateLearnerProgressSchema

Schema to parse request for the update of a learner.

object
progress
required
Progress
object
key
additional properties
StageType
object
stage
required
ProgressStage

Enumeration of progress types

string
Allowed values: DONE SKIP IN_PROGRESS
timecode
required
Timecode
integer

Responses

200

Successful Response

NonPaginatedResponse

Represents a response with either a list of items or a single item in a single page.

Generic Parameters: - A (TypeVar): The type bound to this class, which can be a single BaseModel, a list of BaseModels, or None.

Usage: - To respond with an unpaginated list of FooResponse items from an API endpoint, ensure that your function returns NonPaginatedResponse[List[FooResponse]].

- To respond with a single `FooResponse` item from an API endpoint,
  make sure that your function returns `NonPaginatedResponse[FooResponse]`
  and that Python recognizes it.
object
data
Any of:
Array<object>
BaseModel
object

422

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string