リビジョンの削除
DELETE
https://deploygate.com/api/users/{OWNER_NAME}/platforms/{PLATFORM_TYPE}/apps/{APP_ID}/binaries/{REVISION_NUMBER}
指定したリビジョンを削除します。
Path Params
Name | Type | Required | Description |
---|---|---|---|
OWNER_NAME | string | true | アプリオーナーのユーザー名 |
PLATFORM_TYPE | string | true | ios または android |
APP_ID | string | true | アプリのパッケージ名(例:com.deploygate.android) |
REVISION_NUMBER | int32 | true | パッケージ管理画面上のリビジョンを表す番号(例:#1) |
Example
curl \
--url "https://deploygate.com/api/users/${OWNER_NAME}/platforms/${PLATFORM_TYPE}/apps/${APP_ID}/binaries/${REVISION_NUMBER}" \
-H "Authorization: Bearer ${TOKEN}" \
-X DELETE
Result 200
200 OK
{
"error": false
}
Result 400
400 Bad Request - 最新リビジョンの場合
{
"error": true,
"message": "Cannot delete latest revision"
}
400 Bad Request - 保護されたリビジョンの場合
{
"error": true,
"message": "Cannot delete protected revision"
}
Result 500
500 Internal Server Error
{
"error": true,
"message": "Failed to delete binary"
}