Passa al contenuto principale

Instructors API

Auto-generated from the OpenAPI spec. Run node docs-site/scripts/fetch-openapi.js to regenerate.

GET /api/v1/instructors/me

Get Own Instructor Profile

Responses

  • 200 — Successful Response

GET /api/v1/instructors

List Instructors

Parameters

NameInRequiredTypeDescription
searchqueryNo
include_inactivequeryNoboolean
pagequeryNointeger
page_sizequeryNointeger

Responses

  • 200 — Successful Response
  • 422 — Validation Error

POST /api/v1/instructors

Create Instructor

Request body

FieldRequiredTypeDescription
emailYesstring
passwordYesstring
full_nameYesstring
bioNostring

Responses

  • 201 — Successful Response
  • 422 — Validation Error

PATCH /api/v1/instructors/{instructor_id}/reactivate

Reactivate Instructor

Parameters

NameInRequiredTypeDescription
instructor_idpathYesinteger

Responses

  • 200 — Successful Response
  • 422 — Validation Error

GET /api/v1/instructors/{instructor_id}

Get Instructor

Parameters

NameInRequiredTypeDescription
instructor_idpathYesinteger

Responses

  • 200 — Successful Response
  • 422 — Validation Error

PUT /api/v1/instructors/{instructor_id}

Update Instructor

Parameters

NameInRequiredTypeDescription
instructor_idpathYesinteger

Request body

FieldRequiredTypeDescription
full_nameNostring
bioNostring

Responses

  • 200 — Successful Response
  • 422 — Validation Error

DELETE /api/v1/instructors/{instructor_id}

Deactivate Instructor

Parameters

NameInRequiredTypeDescription
instructor_idpathYesinteger

Responses

  • 204 — Successful Response
  • 422 — Validation Error

POST /api/v1/instructors/{instructor_id}/photo

Upload Instructor Photo

Parameters

NameInRequiredTypeDescription
instructor_idpathYesinteger

Responses

  • 200 — Successful Response
  • 422 — Validation Error

DELETE /api/v1/instructors/{instructor_id}/photo

Remove Instructor Photo

Clear an instructor's profile photo without uploading a replacement.

Idempotent: calling this when no photo is set is a no-op success, not a 404 — the end state (no photo) is what the caller asked for either way.

Parameters

NameInRequiredTypeDescription
instructor_idpathYesinteger

Responses

  • 200 — Successful Response
  • 422 — Validation Error

DELETE /api/v1/instructors/{instructor_id}/remove

Remove Instructor

Parameters

NameInRequiredTypeDescription
instructor_idpathYesinteger

Responses

  • 204 — Successful Response
  • 422 — Validation Error