Skip to main content
Versions

Delete a Skill Version

Forward API reference.

Description

Soft-deletes a version of the specified Skill. The deleted version no longer appears in the version list. If it was the latest version, latest_version automatically points to the next-newest active version, or becomes null when no versions remain.

Path

DELETE /api/v1/forward/skills/{id}/versions/{version}

Request headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or SAT>

Path parameters

ParameterTypeRequiredDescription
idstringYesSkill ID.
versionstringYesVersion number. Accepts a 16-digit Unix microsecond timestamp or a legacy incremental counter during migration. The literal latest is not supported and returns 400. See Legacy version-number compatibility.

Example request

curl -X DELETE "https://api.qoder.com/api/v1/forward/skills/skill_xxx/versions/1786973491821648" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

Example response

HTTP 200 OK
{
  "id": "1786973491821648",
  "type": "skill_version_deleted",
  "deleted": true
}

Response fields

FieldTypeDescription
idstringDeleted version number.
typestringAlways "skill_version_deleted"
deletedbooleanAlways true

Side effects

  • If the deleted version is the Skill's latest_version, the service automatically points latest_version to the remaining active version with the most recent created_at.
  • If no active versions remain, latest_version becomes null.
  • Deletion is soft: the deleted version's status becomes deleted, and the stored entity is not immediately destroyed.

Errors

HTTPTypeTrigger
400invalid_request_errorThe version format is invalid, such as latest or a nonnumeric string.
401authentication_errorThe authentication token is missing or invalid.
403permission_errorThe caller cannot access the Skill.
404not_found_errorThe Skill or version does not exist.
409conflict_errorThe resource state conflicts with the operation, for example when the Skill is archived.
500/502/503api_errorForward or a dependent service failed.