dots.v2.organizations.team.post()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.organizations.team.post(body: Create_team_request, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | TeamPostResponse>

Description

To create a new team within an organization, send a POST request to /v2/organizations/team.

This endpoint must be called in an organization context. Optionally include invitations to invite users to the new team. The owner role cannot be assigned via invitation.

Parameters

name string required

Example: production

The human-readable name for the team to create.

invitations array of objects optional

Example: [{"email": "[email protected]", "role": "member"}, {"email": "[email protected]", "role": "biller"}]

Optional invitations to send when creating the team. Each invitation includes an email address and a role. The owner role cannot be assigned via invitation.

Show child properties
email string required

Example: [email protected]

The email address of the user to invite.

role string required

The role to assign to the invited user. The owner role cannot be assigned via invitation.

One of: member, biller, billing viewer, resource viewer, modifier

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.organizations.team.post({
    name: "production",
});

Response Example

Show Response Example
{
  "team": {
    "uuid": "4e1bfbc3-dc3e-41f2-a18f-1b4d7ba71679",
    "name": "production"
  },
  "invitations": {
    "[email protected]": {
      "status": "ok"
    },
    "[email protected]": {
      "status": "ok"
    }
  }
}

More Information

See /v2/organizations/team in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.