diff --git a/src/api/tutorial.mdx b/src/api/tutorial.mdx index c1e35a8315144..b1671b50b3c91 100644 --- a/src/api/tutorial.mdx +++ b/src/api/tutorial.mdx @@ -226,4 +226,75 @@ Now that you know what teams already exist in your org, use the [Create a New Te Finally, call the [List an Organization's Teams](/api/teams/list-an-organizations-teams/) API one more time to make sure your new team is returned. -1. +1. Make sure your auth token and organization ID are both still stored as environment variables in your shell. + +1. Paste the following cURL command into your terminal: + + ```bash + curl "https://sentry.io/api/0/organizations/$SENTRY_ORG_ID/teams/?detailed=0" \ + -H 'Authorization: Bearer '$SENTRY_AUTH_TOKEN + ``` + +1. Your response should contain an entry for your new "tutorial-team" and look something like this: + + ```json[ + { + "id": "4505524236910592", + "slug": "test-team", + "name": "test-team", + "dateCreated": "2023-07-13T21:33:31.686812Z", + "isMember": false, + "teamRole": null, + "flags": { + "idp:provisioned": false + }, + "access": [ + "member:read", + "alerts:read", + "org:read", + "project:read", + "team:read", + "project:releases", + "event:read", + "event:write" + ], + "hasAccess": true, + "isPending": false, + "memberCount": 1, + "avatar": { + "avatarType": "letter_avatar", + "avatarUuid": null + }, + "orgRole": null + }, + { + "id": "4505524616167424", + "slug": "tutorial-team", + "name": "tutorial-team", + "dateCreated": "2023-07-13T23:09:58.243168Z", + "isMember": false, + "teamRole": null, + "flags": { + "idp:provisioned": false + }, + "access": [ + "member:read", + "alerts:read", + "org:read", + "project:read", + "team:read", + "project:releases", + "event:read", + "event:write" + ], + "hasAccess": true, + "isPending": false, + "memberCount": 0, + "avatar": { + "avatarType": "letter_avatar", + "avatarUuid": null + }, + "orgRole": null + } + ] + ```