メインコンテンツまでスキップ

配布ページのリビジョンを更新する

POST https://deploygate.com/api/distributions/{DISTRIBUTION_KEY}/packages


Path Params

NameTypeRequiredDescription
DISTRIBUTION_KEYstringtrue配布ページのURL最後部に表示される配布ページ固有の値。https://deploygate.com/distributions/に続いて表示される16進数表記の40文字の値です。

Body

NameTypeRequiredDescription
revisionint32trueパッケージ管理画面にあるバージョンを表す番号 (例: #1)
release_notestringfalse配布ページのリリースノート
デフォルト: リビジョンの説明

Example

curl \
--url "https://deploygate.com/api/distributions/${DISTRIBUTION_KEY}/packages" \
-H "Authorization: Bearer ${API_TOKEN}" \
-X POST \
--form-string "revision=${REVISION}" \
--form-string "release_note=${RELEASE_NOTE}"

Result 200

{
"error": false,
"results": {
"access_key": "${ACCESS_KEY}",
"active": true,
"title": "title of the distribution page",
"release_note": "release note of the distribution page",
"release_scope": "${RELEASE_SCOPE}",
"max_members": 100,
"updated_at": 1709033626,
"application": {
"package_name": "${APP_ID}",
"os_name": "Android",
"name": "name of app",
"version_code": "1",
"version_name": "1.0",
"sdk_version": 21,
"raw_sdk_version": "21",
"target_sdk_version": 32,
"signature": "signature",
"fingerprints": [
{
"md5": "md5 hash",
"sha1": "sha1",
"sha256": "sha256",
"max_sdk_version": 2147483647,
"min_sdk_version": 21
}
],
"lineages": [],
"file_size": 1441970,
"md5": "md5 hash",
"revision": "${REVISION_NUMBER}",
"info": "app info",
"updated_at": 1709000986,
"revision_url": "https://deploygate.com/organizations/${ORGANIZATION_NAME}/platforms/${PLATFORM_TYPE}/apps/${APP_ID}/binaries/${REVISION_NUMBER}",
"sdk_abilities": [],
"labels": {},
"path": "/organizations/${ORGANIZATION_NAME}/platforms/${PLATFORM_TYPE}/apps/${APP_ID}"
},
"url": "https://deploygate.com/distributions/${ACCESS_KEY}"
}
}

Result 404

{
"message": "revision not found",
"because": "revision not found",
"error": true
}