Skip to main content

Enable Revision Protection

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

Prevent past versions that exceed the limit from being automatically deleted.


Path Params

NameTypeRequiredDescription
OWNER_NAMEstringtrueApp owner's user name
PLATFORM_TYPEstringtrueios or android
APP_IDstringtrueApp's package name (Example: com.deploygate.android)
REVISION_NUMBERint32trueA number representing the version on the package management screen (Example: # 1)

Example

curl \
--url "https://deploygate.com/api/users/${OWNER_NAME}/platforms/${PLATFORM_TYPE}/apps/${APP_ID}/binaries/${REVISION_NUMBER}/protect" \
-H "Authorization: Bearer ${TOKEN}" \
-X POST

Result 200

{
"error": false,
"results": "protected successfully"
}

Result 404

{
"message": "unknown binary",
"because": "unknown binary",
"error": true
}