Creates or updates a subaccount under the given user context. New subaccounts are automatically added to the "default" group. The default group permissions have wide access to actions and data. Make sure to specify the required groups for new accounts if more restrictive access is required, or change the default group permissions to reflect the desired base access for new subaccounts.

Unlike other ChaosSearch endpoints which require V4 signing, the /user/* endpoints require a JWT token for the primary/tenant account, which can be obtained using the /user/login endpoint.

NOTE: This endpoint is also used to edit an existing subaccount.

The UID is returned by the service on a successful creation of a new subaccount. The UID is the identifier of the subaccount.

Language