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

アプリの配布ページを作成する

POST https://deploygate.com/api/users/{OWNER_NAME}/platforms/{PLATFORM_TYPE}/apps/{APP_ID}/distributions


Path Params

NameTypeRequiredDescription
OWNER_NAMEstringtrueアプリを所有するユーザー名、もしくはグループ名
PLATFORM_TYPEstringtrueios もしくは android
APP_IDstringtrueアプリのパッケージ名 (例: com.deploygate.android)

Body

NameTypeRequiredDescription
titlestringtrue配布ページのタイトル
revisionint32falseパッケージ管理画面にあるリビジョンを表す番号 (例: #1)
デフォルト: 最新のリビジョン
release_notestringfalse配布ページのリリースノート
デフォルト: リビジョンの説明
activebooleanfalse配布ページの有効・無効のフラグ。次のいずれかのオプションを選択して変更します。
  • true (有効化)
  • false (無効化)
デフォルト: true

Example

curl \
--url "https://deploygate.com/api/users/${OWNER_NAME}/platforms/${PLATFORM_TYPE}/apps/${APP_ID}/distributions" \
-H "Authorization: Bearer ${API_TOKEN}" \
-X POST \
--form-string "title=${TITLE}" \
--form-string "revision=${REVISION}" \
--form-string "release_note=${RELEASE_NOTE}" \
--form-string "active=${ACTIVE}"

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": "DeployGate Sample App",
"version_code": "1",
"version_name": "1.0",
"sdk_version": 21,
"raw_sdk_version": "21",
"target_sdk_version": 32,
"signature": "^[0-9a-f]{40}$",
"fingerprints": [
{
"md5": "^[0-9a-f]{32}$",
"sha1": "^[0-9a-f]{40}$",
"sha256": "^[0-9a-f]{64}$",
"max_sdk_version": 2147483647,
"min_sdk_version": 21
}
],
"lineages": [],
"file_size": 1441970,
"md5": "^[0-9a-f]{32}$",
"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": [],
"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
}