Modify organization membership
Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key] to your HTTP request. You can create an API key in the Braintrust organization settings page.
Members to add/remove
Users to invite to the organization
Users to remove from the organization
For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, or in case you want to explicitly assert the organization you are modifying, you may specify the name of the organization.
For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, or in case you want to explicitly assert the organization you are modifying, you may specify the id of the organization.
A success status
success The id of the org that was modified.
If invite emails failed to send for some reason, the patch operation will still complete, but we will return an error message here
If service accounts with tokens were created, this will contain the added users with their API keys