Trainees

POST /api/public/trainees/pending

Changed on

Approve or reject trainees from the coach's approval queue, which GET /trainees?status=pending lists. Approving counts them against the coach's trainee limit and returns 422 if that limit would be exceeded.

Request

  • Base URL
    https://api.coach-platform.com
  • Auth
    HTTP bearer

Headers

Idempotency-Keystring

Optional. Send a unique key (e.g. a UUID) to make this POST safe to retry. The same key within 24h returns the original result instead of creating a duplicate.

Request body

traineeIdsstring[] required

Ids of trainees currently in the pending queue. Ids that are not pending make the whole request fail with 422.

approveboolean required

true to approve the trainees, false to reject them.

Response

Successful response

Changes