Skip to main content
Skills

Delete a Skill

Deletes a Skill that is not referenced by a Template.

Path

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

Request headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or SAT>
Checks Template references before deletion. If unreferenced, the Skill is deleted and no longer appears in default listings.

Path parameters

ParameterTypeRequiredDescription
idstringYesSkill ID.

Query parameters

ParameterTypeRequiredDescription
identity_idstringNoUse only when operating on Identity-owned resources. A PAT can explicitly supply this query parameter; omitting it uses administrator scope. SAT ownership is determined by the credential. Explicitly supplying this parameter with any SAT (including an empty value) returns HTTP 400. See Identity ownership.

Example request

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

Example response

{
  "id": "skill_xxx",
  "type": "skill_deleted",
  "deleted": true
}

Response fields

FieldTypeDescription
idstringID of the deleted resource.
typestringDeletion result type.
deletedbooleanWhether the resource was deleted.

Errors

HTTPTypeTrigger
400invalid_request_errorThe request body, path parameters, or query parameters are invalid; this includes explicitly supplying the query parameter identity_id with any SAT, even with an empty value.
401authentication_errorThe authentication token is missing or invalid.
403permission_errorAn Owner mismatch occurs in administrator scope, or a downstream service denies access.
404not_found_errorThe Skill does not exist, is not registered, or is not visible in the current Identity scope; the Identity specified by the PAT is invalid, disabled, deleted, or outside the caller's authorized scope.
409conflict_errorThe idempotency key conflicts, create recovery requires manual intervention, or the resource is still referenced during deletion.
429rate_limit_errorUpload capacity is insufficient.
500/502/503api_errorForward or a dependent service failed.
Best Practices
API reference