POST
/
v1
/
organizations
/
{org_id}
/
databases
/
{db_id}
Add Database to Organization
curl --request POST \
  --url https://api.vertracloud.app/v1/organizations/{org_id}/databases/{db_id} \
  --header 'Authorization: Bearer <token>'
{
  "status": "success"
}
org_id
string
required
The ID of the organization to add the database to.
db_id
string
required
The ID of the database to add to the organization.

Response

status
string
Indicates whether the call was successful. success if successful, error if not.
{
  "status": "success"
}

Error Responses

status
string
Indicates whether the call was successful. error if not successful.
code
string
The error code indicating the reason for failure. Possible values:
  • FORBIDDEN: The user is not authenticated or lacks sufficient permissions (requires owner or admin role).
  • DATABASE_NOT_FOUND: The specified database does not exist or the user is not the owner.
{
  "status": "error",
  "code": "FORBIDDEN"
}