Skip to content

Change the status of an org

Request

OAuth 2.0 scope:
  • okta.accounts.manage

Change the status of an org

Security
OAuth2(Required scopes: okta.accounts.manageokta.accounts.read)
Path
accountIdstringrequired

The id of the Aerial account

orgIdstringrequired

The id of the Okta Org

Bodyapplication/jsonrequired

The target status for the org

statusstring(org-status-enum)required
Enum:"ACTIVE""INACTIVE"
curl -i -X PUT \
  'https://aerial-apac.okta.com/{accountId}/api/v1/orgs/{orgId}/status' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "status": "INACTIVE"
  }'

Responses

Success

Bodyapplication/json
accountIdstring, (id)

The ID of the Aerial account to which this org is added

namestring, <= 255 charactersrequired

Name of the Org.

cellstring, <= 255 characters

Further detail on the deployment

domainstring, <= 255 characters

Domain to route requests to this Org, that is, subdomain.okta.com

statusstring(org-status-enum)
Enum:"ACTIVE""INACTIVE"
aerialOrgboolean

If true, this Org is the Aerial org for the Aerial account

createdDatestring, <= 255 characters

Time the Org is registered to the Aerial account

createdBystring, <= 255 characters

User who adds this Org to the Aerial account

idstringrequired

The ID of the Org

Response
{ "accountId": "0227mkkf8ulgt48bkidcd8ekqft", "name": "My Org 1", "cell": "ok1", "domain": "my-org-1.okta.com", "status": "INACTIVE", "aerialOrg": false, "createdDate": "2023-12-08T20:15:18.000Z", "id": "00o16fjDHCgFqob8n0g4" }