Menu
Platform
AI
App store purchases
Database
Flags
Jobs and cron
Localization
Monitoring
Notifications
Payments
Queues
Sandboxes
Webhooks
Getting Started
Authentication
KV Store
Deploy & Infrastructure
Reference
Install app on a lease
Installs an Android app (APK) on an ANDROID lease.
Installs an Android app (APK) on an ANDROID lease.
- Path
POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/leases/lease:installApp - Scope
sandboxes:exec - Effect
write— a successful call changes state. - Collection leases
#Request
| Field | Type | What it is |
|---|---|---|
name | string | The name of the lease. Required. |
apk_path | string | The APK's path in the lease (write it with WriteLeaseFile first). Required. |
grant_permissions | bool | Grant every runtime permission the app declares. |
#Response
| Field | Type | What it is |
|---|---|---|
package_name | string | The installed package name. |
#Errors
UNAUTHENTICATED— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.RESOURCE_NOT_FOUND— The named Resource does not exist or is not visible.INVALID_STATE— The Resource is in a state that forbids the call.NOT_FOUND— No method is served at this path.UNIMPLEMENTED— The path or method is not served (yet) at this version.
Every error arrives in the body Errors describes.
#Examples
curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/leases/lease:installApp" \
-H "Authorization: Bearer $SYLPHX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"apk_path":"…"}'