RAID API
  1. Dive Logs
  • 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 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
          GET
        • Sign student dive log
          POST
        • List student dive logs for a course
          GET
    • 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. Dive Logs

Sign student dive log

POST
https://test.diveraid.com/api/v1/professional/dive-logs/{diveLog}/sign
Professional / Dive Logs
Maintainer:Not configured

Overview#

Signs one dive log of a student as its instructor. Served by DiveLogController::sign().
{diveLog} is route-model-bound by its primary key. The caller's id must equal dive_logs.instructor_id. A dive log that is already signed is refused with 422.
Controller: App\Http\Controllers\Api\V1\Professional\DiveLogController::sign()
Route name: api.v1.professional.dive-logs.sign

Authentication#

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

Request#

Method: POST
Path: /api/v1/professional/dive-logs/{diveLog}/sign
Content-Type: application/json

Path parameters#

ParameterTypeDescription
{diveLog}integerDive log primary key
There is no body.

Example request#


Response 200 OK#

Captured live on an unsigned dive log. The data is the refreshed dive log. Names and ids are examples.
{
  "success": true,
  "status": "success",
  "message": "Dive log signed successfully",
  "data": {
    "id": 623823,
    "uuid": "6560b3f5-6d71-4f25-a769-6d593c024844",
    "number": 2,
    "date": "2025-12-29 19:32:00",
    "dive_type": "shore",
    "purpose_type": "course_log",
    "location": "Example Site",
    "country": "ZA",
    "lat": null,
    "lon": null,
    "dive_config": "open_circuit",
    "gas": "air",
    "gas_mix": {
      "helium": 0,
      "nitrogen": 79,
      "oxygen": 21
    },
    "max_depth": 12,
    "average_depth": 6,
    "depth_unit": "meters",
    "dive_time": 45,
    "abt": 45,
    "rnt": 0,
    "tbt": 45,
    "tts": 0,
    "pressure_start": null,
    "pressure_end": null,
    "pressure_unit": "bar",
    "water_temperature": null,
    "weather_temperature": null,
    "temperature_unit": "celsius",
    "weather": "sunny",
    "water": "calm",
    "current": "no_current",
    "visibility": "good",
    "weights": null,
    "weights_unit": "kilogram",
    "buddy": "",
    "verified_by": "XX14-000-001 - Example Instructor",
    "wetsuit": "",
    "sac_rate": null,
    "safety_stop": false,
    "has_decompression": false,
    "decompression_note": "",
    "mod": null,
    "end": null,
    "group_in": "",
    "group_out": "",
    "comments": "Example student declaration.",
    "log_code": "9d3f6a1b2c4e4f7a8b0c1d2e3f4a5b6c",
    "course_id": 67,
    "skill_log_id": 238236,
    "skill_id": 2534,
    "instructor_id": 5454,
    "is_signed": true,
    "signed_at": "2026-10-02 17:30:54",
    "cylinder_count": null,
    "bottom_cylinder_volume": null,
    "dive_condition_notes": ""
  }
}

Response fields#

data is a DiveLogResource, docs/api/diver/_resources.md -> "Dive log". After the call is_signed is true and signed_at holds the signing time. message is Dive log signed successfully.

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 when the caller lacks the professional role, or when dive_logs.instructor_id is not the caller. The second case uses the standard envelope:
{
  "success": false,
  "status": "error",
  "message": "Forbidden"
}

404 Not Found#

Returned when no dive log has that id (route-model binding). Body not captured on this route; the shape is the standard envelope.
{
  "success": false,
  "status": "error",
  "message": "Resource not found"
}

422 Unprocessable Entity - domain rejection#

Emitted by the controller via error(..., 422), when the dive log is already signed. No errors key. Captured live by repeating the call of the 200 capture.
{
  "success": false,
  "status": "error",
  "message": "Dive log has already been signed"
}

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#

Writes: is_signed, signed_by (the caller's id) and signed_at of the dive log, and one activity_log row in the Dive log Signature log with the dive log as subject and the caller as causer.
signed_at is taken in the caller's timezone.
The signature is one-way through the API: there is no unsign route.
The check is on dive_logs.instructor_id, a column the diver can set on their own dive log. It does not verify that the dive log belongs to one of the caller's course logs.

Source: docs/api/professional/dive-logs/POST_sign.md

Request

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

Responses

🟢200
application/json
Dive log signed
Bodyapplication/json

🟠401
🟠403
🟠404
🟠422
🟠429
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test.diveraid.com/api/v1/professional/dive-logs//sign' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "string",
    "data": {
        "id": 0,
        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
        "number": 0,
        "date": "2019-08-24",
        "dive_type": "string",
        "purpose_type": "string",
        "location": "string",
        "country": "string",
        "lat": 0,
        "lon": 0,
        "dive_config": "string",
        "gas": "string",
        "gas_mix": {
            "oxygen": 0,
            "nitrogen": 0,
            "helium": 0
        },
        "max_depth": 0,
        "average_depth": 0,
        "depth_unit": "string",
        "dive_time": 0,
        "abt": 0,
        "rnt": 0,
        "tbt": 0,
        "tts": 0,
        "pressure_start": 0,
        "pressure_end": 0,
        "pressure_unit": "string",
        "water_temperature": 0,
        "weather_temperature": 0,
        "temperature_unit": "string",
        "weather": "string",
        "water": "string",
        "current": "string",
        "visibility": "string",
        "weights": 0,
        "weights_unit": "string",
        "buddy": "string",
        "verified_by": "string",
        "wetsuit": "string",
        "sac_rate": 0,
        "safety_stop": true,
        "has_decompression": true,
        "decompression_note": "string",
        "mod": 0,
        "end": "2019-08-24T14:15:22.123Z",
        "group_in": "string",
        "group_out": "string",
        "comments": "string",
        "log_code": "string",
        "course_id": 0,
        "skill_log_id": 0,
        "skill_id": 0,
        "instructor_id": 0,
        "is_signed": true,
        "signed_at": "2019-08-24T14:15:22.123Z",
        "cylinder_count": 0,
        "bottom_cylinder_volume": 0,
        "dive_condition_notes": "string"
    }
}
Modified at 2026-10-07 08:54:23
Previous
Get student dive log
Next
List student dive logs for a course
Built with