Builds
Builds are uploaded app bundles with their manifest; a Ready build can be deployed.
List
https://api.akter.dev/v1/organizations/{organization}/apps/{app}/buildsList an app's builds, a page at a time.
Path parameters
appstringrequiredAn app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
organizationstringrequiredAn organization's name, unique across Akter Cloud. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
Query parameters
cursorstringThe nextCursor of the previous page.
limitintegerAt most this many items, 1 to 100. Defaults to 50.
Response 200BuildPage
itemsBuild[]requireditems[].appstringrequiredAn app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
items[].createdAtstringrequireditems[].digeststringrequiredA SHA-256 digest as 64 lowercase hex characters.
items[].idstringrequiredAn opaque id that starts with bld_.
items[].manifestBuildManifestrequiredbuild.json: the actor types, contract hashes and migrations of a build.
items[].manifest.actorsBuildActor[]requireditems[].sizeintegerrequiredThe build's size in bytes.
items[].status"Uploading" | "Building" | "Ready" | "Failed"requirednextCursorstringPass as cursor for the next page.
Errors
401UnauthorizedError403ForbiddenError404NotFoundError | FeatureNotEnabledError503ActorUnavailableError | AuthUnavailableError | BillingUnavailableError | BuildStorageUnavailableError | ExecUnavailableError
Create
https://api.akter.dev/v1/organizations/{organization}/apps/{app}/buildsRegister a build by its SHA-256 digest, size and manifest, and get where to upload its bundle when it is not stored yet. akter deploy does this for you.
Path parameters
appstringrequiredAn app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
organizationstringrequiredAn organization's name, unique across Akter Cloud. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
Request bodyCreateBuild
digeststringrequiredA SHA-256 digest as 64 lowercase hex characters.
manifestBuildManifestrequiredbuild.json: the actor types, contract hashes and migrations of a build.
manifest.actorsBuildActor[]requiredmanifest.actors[].contractstringrequiredThe SHA-256 of the actor's entry in contracts.json.
manifest.actors[].migrationsBuildMigration[]requiredmanifest.actors[].namestringrequiredmanifest.actors[].staleForMsRecord<string, integer>Each query that declares staleFor, by name. A query not listed, or a build without the field, is always fresh.
sizeintegerrequiredThe build's size in bytes.
Response 201CreatedBuild
buildBuildrequiredbuild.appstringrequiredAn app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
build.createdAtstringrequiredbuild.digeststringrequiredA SHA-256 digest as 64 lowercase hex characters.
build.idstringrequiredAn opaque id that starts with bld_.
build.manifestBuildManifestrequiredbuild.json: the actor types, contract hashes and migrations of a build.
build.manifest.actorsBuildActor[]requiredbuild.sizeintegerrequiredThe build's size in bytes.
build.status"Uploading" | "Building" | "Ready" | "Failed"requireduploadBuildUploadAbsent when the app already stores a build with this digest.
upload.expiresAtstringrequiredupload.headersRecord<string, string>requiredSend these headers with the PUT.
upload.urlstringrequiredPUT the build here before expiresAt.
Errors
401UnauthorizedError403ForbiddenError404NotFoundError | FeatureNotEnabledError503ActorUnavailableError | AuthUnavailableError | BillingUnavailableError | BuildStorageUnavailableError | ExecUnavailableError
Get
https://api.akter.dev/v1/organizations/{organization}/apps/{app}/builds/{build}Read one build and its status: Uploading, Building, Ready or Failed.
Path parameters
appstringrequiredAn app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
organizationstringrequiredAn organization's name, unique across Akter Cloud. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
buildstringrequiredAn opaque id that starts with bld_.
Response 200Build
appstringrequiredAn app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
createdAtstringrequireddigeststringrequiredA SHA-256 digest as 64 lowercase hex characters.
idstringrequiredAn opaque id that starts with bld_.
manifestBuildManifestrequiredbuild.json: the actor types, contract hashes and migrations of a build.
manifest.actorsBuildActor[]requiredmanifest.actors[].contractstringrequiredThe SHA-256 of the actor's entry in contracts.json.
manifest.actors[].migrationsBuildMigration[]requiredmanifest.actors[].namestringrequiredmanifest.actors[].staleForMsRecord<string, integer>Each query that declares staleFor, by name. A query not listed, or a build without the field, is always fresh.
sizeintegerrequiredThe build's size in bytes.
status"Uploading" | "Building" | "Ready" | "Failed"required
Errors
401UnauthorizedError403ForbiddenError404NotFoundError | FeatureNotEnabledError503ActorUnavailableError | AuthUnavailableError | BillingUnavailableError | BuildStorageUnavailableError | ExecUnavailableError