RAID API
  1. Courses
  • 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
        • Get exam result
          GET
        • Submit course exam
          POST
        • Sign skills (diver)
          POST
        • Get course detail
          GET
        • Submit module quiz
          POST
        • List expired courses
          GET
        • Get quiz result
          GET
        • Get skills progress
          GET
      • 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 classroom progress (all students)
        • Get classroom student progress
        • Sign classroom student skills
        • Get classroom student exam result
        • Get classroom student quiz result
        • Get classroom student skills
      • 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. Courses

Sign skills (diver)

POST
https://test.diveraid.com/api/v1/diver/courses/{log_code}/skills/sign
Diver / Courses
Maintainer:Not configured

Overview#

Records the diver's own signatures against one or more skill logs. Served by CourseController::signSkills(). Silently skips any skill_log_id in the payload that doesn't belong to {log_code} and the authenticated user (continue, no error) rather than rejecting the whole request. Only the skills named in the request change: they are merged into the stored user_skills map. A skill that is not posted keeps its stored value; a skill is un-signed only by an explicit false.
Controller: App\Http\Controllers\Api\V1\Diver\CourseController::signSkills()
Route name: api.v1.diver.courses.skills.sign

Authentication#

Type: Bearer Token
Header: Authorization: Bearer {token}

Request#

Method: POST
Path: /api/v1/diver/courses/{log_code}/skills/sign
Content-Type: application/json

Path parameters#

ParameterTypeDescription
{log_code}string(32)Opaque course log code, owned by the authenticated diver

Body#

{
  "signatures": [
    { "skill_log_id": 207055, "skills": { "1": true, "2": false } }
  ]
}
FieldTypeRequiredValidationDescription
signaturesarrayYesrequired|array|min:1One entry per skill log to sign
signatures.*.skill_log_idintegerYesrequired|integer|exists:skill_logs,idExistence is checked against all skill logs, not scoped to this diver or this log_code — ownership is enforced later, per-entry, by silently skipping
signatures.*.skillsobjectYesrequired|array{skillId: bool} map, merged into the stored user_skills: skills not posted keep their stored value, false un-signs
signatures.*.skills.*booleanYesboolean
Validated by App\Http\Requests\Api\V1\Diver\SignSkillsRequest, extends ApiFormRequest — full envelope 422.

Example request#


Response 200 OK#

Captured live: signed skill_log_id 207055 with {"1":true,"2":false}, against a course log with 1 skill log. Abbreviated to 1 skill.
{
  "success": true,
  "status": "success",
  "message": "Skills signed successfully",
  "data": [
    {
      "id": 207055,
      "log_code": "67995bd8bfa208cec4bd72b809c745d3",
      "skill_type_id": 1,
      "skill_type_name": "Confined Water or Pool",
      "user_completed": null,
      "start": "2025-04-02 18:07:22",
      "end": "2026-09-23 10:12:28",
      "skills": [
        {
          "id": 1,
          "name": "Example skill",
          "description": "Example skill description.",
          "diver_signed": true,
          "instructor_signed": false
        }
      ]
    }
  ]
}
data is SkillProgressResource::collection() of every skill log for {log_code} and this diver, post-update — see _resources.md → "Skill progress entry". end is set to the time of this request regardless of whether any value in skills actually changed.

Errors#

401 Unauthorized#

{
  "success": false,
  "status": "error",
  "message": "Unauthenticated"
}

403 Forbidden - repetition#

{
  "success": false,
  "status": "error",
  "message": "Skills are not available for a repetition."
}
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.

404 Not Found#

Laravel's default 404 when {log_code} does not resolve to a course log owned by the authenticated user.
{
  "message": "No query results for model [App\\Models\\CourseLog\\CourseLog]."
}

422 Unprocessable Entity — validation#

Full envelope, same shape as POST_quiz_submit.md's 422 — not re-captured separately; SignSkillsRequest extends the same ApiFormRequest base.

Notes#

Merge rule: only the skills named in the request change: they are merged into the stored user_skills map. A skill that is not posted keeps its stored value; a skill is un-signed only by an explicit false.
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.
Side effects: updates SkillLog.user_skills, user_ip and end for every matched signature.
A signatures entry whose skill_log_id doesn't belong to {log_code} and this diver is silently skipped, not rejected.
signatures.*.skill_log_id's exists:skill_logs,id validation rule checks the id exists at all, not that it belongs to this diver — ownership is enforced afterward in the loop, not by the FormRequest.
The Call to undefined relationship [skills] on model [App\Models\Skills\SkillType] crash documented until 23c8454ad (finding 2 of docs/plans/ApiDocsDiver/findings.md) is fixed: the write and the response are atomic again, captured 2026-09-23.

Source: docs/api/diver/courses/POST_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
🟠404
🟠422
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://test.diveraid.com/api/v1/diver/courses//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-12-04 07:58:20
Previous
Submit course exam
Next
Get course detail
Built with