Skip to content

Commit

Permalink
add final list step
Browse files Browse the repository at this point in the history
  • Loading branch information
shanamatthews committed Jul 13, 2023
1 parent ad4ed3f commit aec02a8
Showing 1 changed file with 72 additions and 1 deletion.
73 changes: 72 additions & 1 deletion src/api/tutorial.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
```

0 comments on commit aec02a8

Please sign in to comment.