This API is available only to customers using the new user management experience. Learn more about the new user management experience.
This tutorial will help you to:
The creation of new groups using existing group names is not permitted.
To complete this tutorial, you need the following:
The Create group script uses an API key as a Bearer access token. It also uses the Organization ID field as a path parameter.
To create an API key and get the Organization ID:
Learn more about the API keys.
Use the API key and Organization ID from the previous steps to create group: POST /v1/orgs/{orgId}/directory/groups
. Name the group and add a description.
1 2curl --request POST \ --url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/directory/groups' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "description": "<string>" }'
Make your first request and get started with the Create group API and get more information on error codes.
Rate this page: