Project Branches

Renew a project branch TTL

post/projects/v1/{project_id}/branches/{branch_project_id}/renew

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/projects/v1/{project_id}/branches/{branch_project_id}/renew
  • Auth: one of:
    • API key in header SIGN-IN-WITH-X
    • HTTP bearer

Path parameters

project_idstring required

Run402 project ID. Public IDs are not UUIDs.

Example:prj_1741340000_0042
branch_project_idstring required

The branch project's Run402 project ID.

Example:prj_1741340000_branch

Request body

ttl_daysnumber

Response

Renewed branch.

branch_project_idstring required

The branch project's Run402 project ID.

parent_project_idstring required

The parent project's Run402 project ID.

namestring required
branch_urlstring uri nullable
subdomainstring nullable
status'active' required
email_mode'sandbox' | 'off' required
enable_cronboolean required
expires_atstring date-time required
created_atstring date-time required

Example response

{
  "branch_project_id": "prj_1741340000_branch",
  "parent_project_id": "prj_1741340000_0042",
  "next_actions": [
    {
      "method": "POST",
      "path": "/tiers/v1/hobby",
      "auth": "x402"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.