Create a child organization

POST {{baseUrl}}/api/v1/org

Create a child organization.

This endpoint requires the multi-organization account feature and must be enabled by contacting support.

Once a new child organization is created, you can interact with it by using the org.public_id, api_key.key, and application_key.hash provided in the response.

Request Body

{"name"=>"New child org", "billing"=>{"type"=>"parent_billing"}, "subscription"=>{"type"=>"pro"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"api_key":{"created":"2019-08-02 15:31:07","created_by":"john@example.com","key":"1234512345123456abcabc912349abcd","name":"example user"},"application_key":{"hash":"1234512345123459cda4eb9ced49a3d84fd0138c","name":"example user","owner":"example.com"},"org":{"billing":{"type":"parent_billing"},"created":"2019-09-26T17:28:28Z","description":"some description","name":"New child org","public_id":"abcdef12345","settings":{"private_widget_share":false,"saml":{"enabled":false},"saml_autocreate_access_role":"ro","saml_autocreate_users_domains":{"domains":["example.com","example.com"],"enabled":false},"saml_can_be_enabled":false,"saml_idp_endpoint":"https://my.saml.endpoint","saml_idp_initiated_login":{"enabled":false},"saml_idp_metadata_uploaded":false,"saml_login_url":"https://my.saml.login.url","saml_strict_mode":{"enabled":false}},"subscription":{"type":"pro"},"trial":false},"user":{"access_role":"ro","disabled":false,"email":"test@datadoghq.com","handle":"test@datadoghq.com","icon":"/path/to/matching/gravatar/icon","name":"test user","verified":true}}