user_skills, records the caller's IP in user_ip and sets end to the current time, then returns every skill log of the log_code. Served by RenewalController::signSkills().App\Http\Controllers\Api\V1\Professional\RenewalController::signSkills()api.v1.professional.renewals.skills.signAuthorization: Bearer {token}role:professional. A user without the professional role receives 403.POST/api/v1/professional/renewals/{log_code}/skills/signapplication/json| Parameter | Type | Description |
|---|---|---|
{log_code} | string(32) | Renewal course log code, as returned by GET /api/v1/professional/renewals. Not a primary key. |
{
"signatures": [
{
"skill_log_id": 950001,
"skills": {
"5001": true,
"5002": true
}
}
]
}App\Http\Requests\Api\V1\Professional\SignSkillsRequest.| Field | Type | Required | Validation | Description |
|---|---|---|---|---|
signatures | array | Yes | required|array | One entry per skill log to sign |
signatures[].skill_log_id | integer | Yes | required|integer|exists:skill_logs,id | Skill log id, as returned by GET /api/v1/professional/renewals/{log_code}/skills |
signatures[].skills | object | Yes | required|array | Map {skill id: bool}. Merged into the stored user_skills: skills not posted keep their stored value, false un-signs |
signatures[].skills.* | boolean | Yes | boolean | Whether the skill is signed |
200 OKuser_skills it already held. 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": 950001,
"log_code": "7c1e5d9a3b2f4a68901d2c3b4a5f6e70",
"skill_type_id": 1,
"skill_type_name": "Confined Water or Pool",
"user_completed": null,
"start": "2026-03-07 22:17:02",
"end": "2026-03-07 22:18:56",
"skills": [
{
"id": 5001,
"name": "Example skill one",
"description": "<p>Example skill description.</p>",
"diver_signed": true,
"instructor_signed": false
},
{
"id": 5002,
"name": "Example skill two",
"description": "<p>Example skill description.</p>",
"diver_signed": true,
"instructor_signed": false
}
]
}
]
}data is a SkillProgressResource collection, docs/api/diver/_resources.md -> "Skill progress entry". message is Skills signed successfully.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 Forbiddenprofessional role (role:professional middleware, body not captured), or no renewal with that log_code belongs to the caller, or that log_code does not exist. The second case uses the standard envelope:{
"success": false,
"status": "error",
"message": "Forbidden"
}422 Unprocessable Entity - validationApiFormRequest::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 Requestsx-ratelimit-limit: 120. The body is the standard envelope with message: "Too many requests" and a Retry-After header.user_skills map. A skill that is not posted keeps its stored value; a skill is un-signed only by an explicit false.user_skills, user_ip and end of each signed skill log. updated_at moves with them.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. The same rule as the diver endpoint.end is set to the time of the call on every request, including a re-submission of the same skills.log_code answers 403, not 404.docs/api/professional/renewals/POST_skills_sign.mdcurl --location 'https://test.diveraid.com/api/v1/professional/renewals//skills/sign' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"signatures": [
{
"skill_log_id": 0,
"skills": {
"property1": true,
"property2": true
}
}
]
}'{
"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
}
]
}
]
}