POST
/
v1
/
orgs
curl --request POST \
  --url https://ctl.prod.nuon.co/v1/orgs \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "use_custom_cert": true,
  "use_sandbox_mode": true
}'
{
  "created_at": "<string>",
  "created_by": {
    "created_at": "<string>",
    "created_by_id": "<string>",
    "email": "<string>",
    "expires_at": "<string>",
    "id": "<string>",
    "issued_at": "<string>",
    "issuer": "<string>",
    "subject": "<string>",
    "token_type": "auth0",
    "updated_at": "<string>"
  },
  "created_by_id": "<string>",
  "custom_cert": true,
  "health_checks": [
    {
      "created_at": "<string>",
      "created_by": {
        "created_at": "<string>",
        "created_by_id": "<string>",
        "email": "<string>",
        "expires_at": "<string>",
        "id": "<string>",
        "issued_at": "<string>",
        "issuer": "<string>",
        "subject": "<string>",
        "token_type": "auth0",
        "updated_at": "<string>"
      },
      "created_by_id": "<string>",
      "id": "<string>",
      "orgID": "<string>",
      "status": "ok",
      "status_description": "<string>",
      "updated_at": "<string>"
    }
  ],
  "id": "<string>",
  "latest_health_check": {
    "created_at": "<string>",
    "created_by": {
      "created_at": "<string>",
      "created_by_id": "<string>",
      "email": "<string>",
      "expires_at": "<string>",
      "id": "<string>",
      "issued_at": "<string>",
      "issuer": "<string>",
      "subject": "<string>",
      "token_type": "auth0",
      "updated_at": "<string>"
    },
    "created_by_id": "<string>",
    "id": "<string>",
    "orgID": "<string>",
    "status": "ok",
    "status_description": "<string>",
    "updated_at": "<string>"
  },
  "name": "<string>",
  "sandbox_mode": true,
  "status": "<string>",
  "status_description": "<string>",
  "updated_at": "<string>",
  "users": [
    {
      "created_at": "<string>",
      "created_by": {
        "created_at": "<string>",
        "created_by_id": "<string>",
        "email": "<string>",
        "expires_at": "<string>",
        "id": "<string>",
        "issued_at": "<string>",
        "issuer": "<string>",
        "subject": "<string>",
        "token_type": "auth0",
        "updated_at": "<string>"
      },
      "created_by_id": "<string>",
      "id": "<string>",
      "orgID": "<string>",
      "updated_at": "<string>",
      "userID": "<string>"
    }
  ],
  "vcs_connections": [
    {
      "created_at": "<string>",
      "created_by": {
        "created_at": "<string>",
        "created_by_id": "<string>",
        "email": "<string>",
        "expires_at": "<string>",
        "id": "<string>",
        "issued_at": "<string>",
        "issuer": "<string>",
        "subject": "<string>",
        "token_type": "auth0",
        "updated_at": "<string>"
      },
      "created_by_id": "<string>",
      "github_install_id": "<string>",
      "id": "<string>",
      "updated_at": "<string>",
      "vcs_connection_commit": [
        {
          "author_email": "<string>",
          "author_name": "<string>",
          "component_config_connection_id": "<string>",
          "created_at": "<string>",
          "created_by": {
            "created_at": "<string>",
            "created_by_id": "<string>",
            "email": "<string>",
            "expires_at": "<string>",
            "id": "<string>",
            "issued_at": "<string>",
            "issuer": "<string>",
            "subject": "<string>",
            "token_type": "auth0",
            "updated_at": "<string>"
          },
          "created_by_id": "<string>",
          "id": "<string>",
          "message": "<string>",
          "sha": "<string>",
          "updated_at": "<string>"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
headerrequired

Type "Bearer" followed by a space and token.

Body

application/json
name
string
required
use_custom_cert
boolean

These fields are used to control the behaviour of the org.

use_sandbox_mode
boolean

Response

201 - application/json
created_at
string
created_by
object
created_by_id
string
custom_cert
boolean
health_checks
object[]
id
string
latest_health_check
object

Filled in at read time

name
string
sandbox_mode
boolean

These fields are used to control the behaviour of the org NOTE: these are starting as nullable, so we can update stage/prod before resetting locally.

status
string
status_description
string
updated_at
string
users
object[]
vcs_connections
object[]