SDK reference

Serverless App Services

Each route's function in the SDK, its call beside the same request in cURL.
orgProjects

GET/v1/orgs/:orgId/projects

Lists the organization's Serverless App Services.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/projects' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgProjects

POST/v1/orgs/:orgId/projects

Creates a Serverless App Service. Without location, the registry's default location is used.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/projects' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "slug": "example"
  }'
orgProjectsByProjectId

GET/v1/orgs/:orgId/projects/:projectId

A Serverless App Service with its most recent deployments and, once it has a production deployment, its production hostname.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgProjectsByProjectId

PATCH/v1/orgs/:orgId/projects/:projectId

Updates the name, repository link, production branch, root directory, build and install commands, function memory and max duration (for new deployments; null returns to the default) or deployment protection (standard or off, applied to existing deployment URLs at once). repoId: null unlinks the repository; productionHold: false lets new production builds go live again after a rollback.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "buildCommand": {},
    "installCommand": {},
    "outputDirectory": {}
  }'
orgProjectsCrons

GET/v1/orgs/:orgId/projects/:projectId/crons

The production deployment's cron jobs (cactive.json), whether they're paused, and each path's last scheduled call.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/crons' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgProjectsCrons

PUT/v1/orgs/:orgId/projects/:projectId/crons

Pauses or resumes the Serverless App Service's cron jobs. Schedules stay and are disabled, and stay disabled when a deployment, promotion or rollback replaces them, until resumed.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/crons' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "paused": true
  }'
orgProjectsProtectionGroups

GET/v1/orgs/:orgId/projects/:projectId/protection/groups

The org's groups (Tenant → Groups) that protection can be limited to, by name.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/protection/groups' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgProjectsProtectionBypass

POST/v1/orgs/:orgId/projects/:projectId/protection/bypass

Creates (or replaces) the protection bypass secret: automation sends it as the x-si-protection-bypass header or query parameter. Only its hash is stored; it's shown once.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/protection/bypass' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgProjectsProtectionBypass

DELETE/v1/orgs/:orgId/projects/:projectId/protection/bypass

Revokes the protection bypass secret: requests carrying it get the sign-in from then on.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/protection/bypass' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgProjectsTransfer

POST/v1/orgs/:orgId/projects/:projectId/transfer

Moves a Serverless App Service to another org the caller administers. Deployments, domains, environment variables (re-encrypted for the new org) and crons move with it; the repository stays and is disconnected, and linked storage must be unlinked first.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/transfer' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "orgId": "<orgId>"
  }'
deleteOrgProjectsByProjectId

DELETE/v1/orgs/:orgId/projects/:projectId

Deletes a project: its domains (routes and certificates), crons, server functions, routes, deployment records and environment variables. Linked storage is unlinked, not deleted, and the repository is kept.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"