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
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT or SAT> |
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Skill ID. |
version | string | Yes | Version 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
Example response
HTTP 200 OK
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Deleted version number. |
type | string | Always "skill_version_deleted" |
deleted | boolean | Always true |
Side effects
- If the deleted version is the Skill's
latest_version, the service automatically pointslatest_versionto the remaining active version with the most recentcreated_at. - If no active versions remain,
latest_versionbecomesnull. - Deletion is soft: the deleted version's
statusbecomesdeleted, and the stored entity is not immediately destroyed.
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | The version format is invalid, such as latest or a nonnumeric string. |
| 401 | authentication_error | The authentication token is missing or invalid. |
| 403 | permission_error | The caller cannot access the Skill. |
| 404 | not_found_error | The Skill or version does not exist. |
| 409 | conflict_error | The resource state conflicts with the operation, for example when the Skill is archived. |
| 500/502/503 | api_error | Forward or a dependent service failed. |