RAID API
  1. Classroom
  • DiveRAID frontend public API
    • Search divers
      POST
    • Search instructors
      POST
    • Search dive centers
      POST
    • Search dive centers by country
      GET
  • DiveRAID rest API V1
    • Auth
      • Register a new user
      • Login and get a Sanctum token
      • Send password reset email
      • Reset password using token
      • Logout and revoke the current token
      • Resend email verification
      • Complete a two-factor login and get a Sanctum token
    • Profile
      • The user resource
      • Get authenticated user profile
      • Update profile
      • Register push token
      • Update password
      • Remove push token
      • Rotate exam unlock code
      • Delete account
      • Update dive center association
    • Diver
      • Shared diver resources
      • Courses
        • List active courses
        • Get exam result
        • Submit course exam
        • Sign skills (diver)
        • Get course detail
        • Submit module quiz
        • List expired courses
        • Get quiz result
        • Get skills progress
      • Free Learnings
        • List enrolled free learnings
        • Get free learning quiz result
        • List available free learning courses
        • Submit free learning module quiz
        • Get free learning detail
        • Enroll in a free learning course
      • Certifications
        • Get certification history
        • Get certification quiz result
        • Get certification exam result
        • Get certification skills
        • List diver certifications
      • Dive Logs
        • Delete dive log
        • Create dive log
        • Update dive log
        • List loggable courses
        • List dive logs (paginated)
        • Get dive log
      • Awards
        • List the recognition cards issued to the user
      • Documents
        • Upload own medical certificate or insurance
        • List own medical certificates and insurance
        • List diver documents
      • Forms
        • List diver forms
      • Medical
        • Get medical questionnaire structure
        • Submit medical questionnaire
      • Store
        • List courses available for purchase
        • Get order status
    • Professional
      • Students
        • List students
        • Get student progress
        • Sign student skills
        • Get student exam result
        • Get student quiz result
        • Get student skills progress
      • Certifications
        • Get certification history
        • Get certification quiz result
        • Get certification exam result
        • Get certification skills
        • List all professional certifications
        • List diver-level certifications
        • List examiner certifications
        • List professional certifications
        • List specialty certifications
        • List trainer certifications
      • Classroom
        • List classrooms
          GET
        • Get classroom progress (all students)
          GET
        • Get classroom student progress
          GET
        • Sign classroom student skills
          POST
        • Get classroom student exam result
          GET
        • Get classroom student quiz result
          GET
        • Get classroom student skills
          GET
      • Renewals
        • List renewal courses
        • Get renewal exam result
        • Submit renewal exam
        • Sign renewal skills
        • Renewal status
        • Get renewal progress
        • Submit renewal module quiz
        • Get renewal quiz result
        • Get renewal skills progress
      • Dive Logs
        • Get student dive log
        • Sign student dive log
        • List student dive logs for a course
    • Sync
      • Download full course data for offline use
      • Upload offline operations
      • Get sync status
    • Public
      • List all countries
      • Dive-log enum values with labels in the response language
      • Get country data
      • Get country divisions (states/provinces)
      • List time zone identifiers, optionally narrowed to one country
      • List, search, and radius-search publicly visible dive centres
      • Every publicly visible, geolocated dive centre as a map marker
      • Countries with at least one publicly visible dive centre
      • Full detail of one publicly visible dive centre
    • Library
      • List the RAID document library
      • List the current RAID standards
  • Schemas
    • Frontend API Schema
      • DiverSearch
    • SuccessResponse
    • DiverCertification
    • ValidationErrorResponse
    • TwoFactorChallengeResponse
    • TokenResponse
    • IssuedCertification
    • ErrorResponse
    • DiveLog
    • ExamResult
    • QuizResult
    • CourseLogDetail
    • CourseLog
    • UserProfile
    • SkillProgress
    • Certification
    • PaginatedDiveLogs
    • StoreItem
    • PaymentIntentResponse
    • OrderConfirmResponse
    • OrderStatusResponse
    • InstructorSearch
    • DiveCenterSearch
  1. Classroom

Sign classroom student skills

POST
https://test.diveraid.com/api/v1/professional/classroom/students/{log_code}/skills/sign
Professional / Classroom
Maintainer:Not configured

Overview#

Writes the instructor's signature on the skills of one student of the instructor's classrooms. For each submitted skill log it merges the submitted map into instructor_skills and records the caller's IP in instructor_ip, then returns every skill log of the log_code. Served by ClassroomController::signStudentSkills().
Controller: App\Http\Controllers\Api\V1\Professional\ClassroomController::signStudentSkills()
Route name: api.v1.professional.classroom.student.skills.sign

Authentication#

Type: Bearer Token (Sanctum)
Header: Authorization: Bearer {token}
Additional middleware: role:professional. A user without the professional role receives 403.

Request#

Method: POST
Path: /api/v1/professional/classroom/students/{log_code}/skills/sign
Content-Type: application/json

Path parameters#

ParameterTypeDescription
{log_code}string(32)Course log code of a student, as returned by GET /api/v1/professional/classroom/{classroom}. Not a primary key

Body#

{
  "signatures": [
    {
      "skill_log_id": 930001,
      "skills": {
        "5001": true,
        "5002": false
      }
    }
  ]
}
Validated by App\Http\Requests\Api\V1\Professional\SignSkillsRequest.
FieldTypeRequiredValidationDescription
signaturesarrayYesrequired|arrayOne entry per skill log to sign
signatures[].skill_log_idintegerYesrequired|integer|exists:skill_logs,idSkill log id, as returned by GET /api/v1/professional/classroom/students/{log_code}/skills
signatures[].skillsobjectYesrequired|arrayMap {skill id: bool}. Merged into the stored instructor_skills: skills not posted keep their stored value, false un-signs
signatures[].skills.*booleanYesbooleanWhether the instructor signs the skill

Example request#


Response 200 OK#

Captured live by re-submitting, for the capture account's first skill log, the same instructor_skills it already held, then restoring the stored values. The data array holds every skill log of the log_code, not only the signed ones. Names and ids are examples.
{
  "success": true,
  "status": "success",
  "message": "Skills signed successfully",
  "data": [
    {
      "id": 930001,
      "log_code": "5b8e2f0a9c1d4e7a83b6c2d1e0f49a37",
      "skill_type_id": 1,
      "skill_type_name": "Confined Water or Pool",
      "user_completed": null,
      "start": "2025-01-10 18:07:33",
      "end": null,
      "skills": [
        {
          "id": 5001,
          "name": "Example skill one",
          "description": "<p>Example skill description.</p>",
          "diver_signed": false,
          "instructor_signed": false
        }
      ]
    },
    {
      "id": 930002,
      "log_code": "5b8e2f0a9c1d4e7a83b6c2d1e0f49a37",
      "skill_type_id": 2,
      "skill_type_name": "Open Water",
      "user_completed": null,
      "start": "2025-01-10 18:07:33",
      "end": null,
      "skills": [
        {
          "id": 5002,
          "name": "Example skill two",
          "description": "<p>Example skill description.</p>",
          "diver_signed": false,
          "instructor_signed": false
        }
      ]
    }
  ]
}

Response fields#

data is a SkillProgressResource collection, docs/api/diver/_resources.md -> "Skill progress entry", the same shape as GET /api/v1/professional/classroom/students/{log_code}/skills. message is Skills signed successfully.
The capture re-submitted a false signature, so instructor_signed is false in it. A signature submitted as true is expected to read back as instructor_signed: true; that was not captured.

Errors#

401 Unauthorized#

{
  "success": false,
  "status": "error",
  "message": "Unauthenticated"
}
message is Token expired or Invalid token when a bearer token was sent but is expired or unknown.

403 Forbidden#

Returned in two cases: the authenticated user does not have the professional role (role:professional middleware, body not captured), or no course log with that log_code belongs to a classroom of the caller, or that log_code does not exist. The second case uses the standard envelope:
{
  "success": false,
  "status": "error",
  "message": "Forbidden"
}
A further 403 with the message Skills are not available for a repetition. is returned when the course log is a repetition of a course already certified: a repetition requires no skills and shares its log code with the certified attempt, so nothing is written.

422 Unprocessable Entity - validation#

Emitted by ApiFormRequest::failedValidation(), before the controller runs. Not captured on this route; the shape is the one the base class emits. It also answers when a skill_log_id does not exist in skill_logs.
{
  "success": false,
  "status": "error",
  "message": "Validation failed",
  "errors": {
    "signatures": ["The signatures field is required."]
  }
}

429 Too Many Requests#

The route sits behind the API rate limiter; the live responses carried x-ratelimit-limit: 120. The body is the standard envelope with message: "Too many requests" and a Retry-After header.

Notes#

Merge rule: only the skills named in the request change: they are merged into the stored instructor_skills map. A skill that is not posted keeps its stored value; a skill is un-signed only by an explicit false.
The caller must be the instructor of the course log and allowed to work as a professional (can_work_as_professional: professional qualification, status, expiry, medical form and the other requirements of the website gate sign-instructor-skills). Otherwise the endpoint answers 403 and nothing is written.
A posted skill id that the skill log does not hold is ignored: only the skills the row already has (every skill of the course, created unsigned) can change.
An expired course log (expire_date in the past) answers 403 with the message Skills cannot be signed on an expired course. and nothing is written: an expired course can only take quizzes, as on the website.
Writes: instructor_skills and instructor_ip of each signed skill log. updated_at moves with them. It does not touch user_skills, user_ip or end: those belong to the diver's own signature.
A skill_log_id that exists but belongs to another log_code is skipped without error: the request still answers 200 and the skill log is left untouched.
Apart from the expiry, the status of the course log is not checked. The endpoint accepts a signature on a course log that is already certified, and merges into instructor_skills there as well.
Ownership is checked once, on the log_code: the course log must belong to a classroom of the caller and the caller must be the instructor of the course log (instructor_id). A classroom instructor who is not the instructor of the log answers 403. An unknown log_code answers 403, not 404.

Source: docs/api/professional/classroom/POST_student_skills_sign.md

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Skills signed
Bodyapplication/json

🟠401
🟠403
🟠422
🟠429
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://test.diveraid.com/api/v1/professional/classroom/students//skills/sign' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "signatures": [
        {
            "skill_log_id": 0,
            "skills": {
                "property1": true,
                "property2": true
            }
        }
    ]
}'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "string",
    "data": [
        {
            "id": 0,
            "log_code": "string",
            "skill_type_id": 0,
            "skill_type_name": "string",
            "user_completed": true,
            "start": "2019-08-24T14:15:22.123Z",
            "end": "2019-08-24T14:15:22.123Z",
            "skills": [
                {
                    "id": 0,
                    "name": "string",
                    "description": "string",
                    "diver_signed": true,
                    "instructor_signed": true
                }
            ]
        }
    ]
}
Modified at 2026-11-05 11:58:43
Previous
Get classroom student progress
Next
Get classroom student exam result
Built with