Create a new deployment
const url = 'https://api.aetherpush.com/v1/apps/example/deployments';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Beta"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.aetherpush.com/v1/apps/example/deployments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Beta" }'Creates a new deployment channel under the app. Only accounts with the deployments.manage permission (Owner or Admin) can create deployments.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Optional pre-defined deployment key. If omitted, the server generates a secure random key. Pre-defined keys are useful when migrating from CodePush and need to preserve existing client deployments without redeploying app binaries. A key outside the length or character set above is refused with 400, so a migrated key containing other characters has to be rewritten on the client before the deployment is created.
Example
{ "name": "Beta"}Responses
Section titled “Responses”Deployment created.
object
object
Deployment key consumed by the React Native SDK at runtime. Replaced with “(hidden)” for accounts without the deploymentKeys.read capability.
object
Signed URL to download the package bundle.
Map of source package hash to diff blob info.
object
object
Signed URL to the package manifest (file hash map).
Set when releaseMethod is Promote.
Set when releaseMethod is Promote or Rollback.
Account email of the releaser.
Package size in bytes.
Unix timestamp in milliseconds.
Example
{ "deployment": { "name": "Production", "key": "AbCdEf1234567890", "package": { "appVersion": "1.0.0", "label": "v3", "releaseMethod": "Upload" } }}Headers
Section titled “Headers”Validation error.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
object
object
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}Insufficient permissions (deployments.manage required).
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}App not found.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}A deployment with that name already exists in this app.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}