Skip to main content
PUT
/
organizations
/
{orgId}
Update organization details
curl --request PUT \
  --url http://localhost:3000/organizations/{orgId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "billing_email": "jsmith@example.com",
  "metadata_updates": {},
  "metadata_deletes": [
    "<string>"
  ]
}
'
{
  "statusCode": 123,
  "message": "OK",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "billing_email": "jsmith@example.com",
    "created_at": "2023-11-07T05:31:56Z",
    "metadata": {},
    "deleted_at": "2023-11-07T05:31:56Z",
    "plan_id": "<string>",
    "flag_count": 0,
    "project_count": 0,
    "environment_count": 0,
    "trial_starts_at": "2023-11-07T05:31:56Z",
    "trial_ends_at": "2023-11-07T05:31:56Z",
    "current_period_end": "2023-11-07T05:31:56Z",
    "subscription_status": "trialing",
    "api_usage": 0,
    "has_used_paid_trial": false
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orgId
string<uuid>
required

Body

application/json
name
string
billing_email
string<email>
metadata_updates
object
metadata_deletes
string[]

Response

Default Response

statusCode
number
message
string
default:OK
data
object