Skip to main content
Versions

Skill バージョン内容のダウンロード

Forward API リファレンス。

Description

Streams the complete zip package for a specified Skill version. The response body is application/zip; clients should write the body directly to a file instead of attempting to deserialize it.

パス

GET /api/v1/forward/skills/{id}/versions/{version}/content

リクエストヘッダー

ヘッダー必須説明
AuthorizationはいBearer <PAT または SAT>

パス参数

パラメーター必須説明
idstringはいSkill 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.

リクエスト例

curl -sSL -X GET "https://api.qoder.com/api/v1/forward/skills/skill_xxx/versions/1786973491821648/content" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN" \
  -o customer-reply.zip

レスポンス

HTTP 200 OK The response body is the complete zip archive byte stream.
Response headerExampleDescription
Content-Typeapplication/zipFixed value
Content-Dispositionattachment; filename="customer-reply.zip"Suggested download filename, taken from directory in the Skill version object, which equals the Skill's name.
Content-Length2607Matches content_size in the Skill version object.
The zip archive's top-level directory matches directory in the Skill version object. For example:
customer-reply/
├── SKILL
├── scripts/
│   └── run.sh
└── data/
    └── rules.json

エラー

HTTPType発生条件
400invalid_request_errorThe version format is invalid, such as latest or a nonnumeric string.
401authentication_error認証トークンがないか、無効です。
403permission_errorThe caller cannot access the Skill.
404not_found_errorThe Skill or version does not exist.
500/502/503api_errorForward または依存サービスでエラーが発生しました。