Skip to content

Commit 69f51e9

Browse files
Address PR feedback: Add more info to distinguish legacy tokens
1 parent 2b46fe6 commit 69f51e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/docs/cloud-docs/api-docs/team-tokens.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ description: >-
4040

4141
Team API tokens grant access to a team's workspaces. Teams are not limited to a single token, and can have multiple tokens at a time. Team tokens are not are not associated with a specific user.
4242

43-
Teams relying on the [**legacy**](/terraform/cloud-docs/api-docs/team-tokens#legacy-team-tokens-api-reference) team token API (`/teams/authentication-token`), can only have a **single**, valid token at a time. Generating a new legacy token revokes any previously existing tokens, replacing it with the new team token.
43+
Teams relying on the [**legacy**](/terraform/cloud-docs/api-docs/team-tokens#legacy-team-tokens-api-reference) team token API (`/teams/authentication-token`), can only create a **single**, valid token at a time. Generating a new legacy token when one already exists for the team revokes the existing legacy token, replacing it with a new team token.
4444

4545
You can create and delete team tokens and list an organization's team tokens.
4646

@@ -298,7 +298,7 @@ curl \
298298

299299
Legacy team API tokens grant access to a team's workspaces. Each team can have an API token that is not associated with a specific user.
300300
You can create and delete team tokens and list an organization's team tokens.
301-
The [team tokens API](/terraform/cloud-docs/api-docs/team-tokens) includes the same functionality as legacy team tokens, and allows you to provision multiple tokens per team.
301+
The [team tokens API](/terraform/cloud-docs/api-docs/team-tokens) includes the same functionality as legacy team tokens, and allows you to provision multiple tokens with descriptions per team.
302302

303303
## Generate a new team token
304304

@@ -346,7 +346,7 @@ curl \
346346
--header "Content-Type: application/vnd.api+json" \
347347
--request POST \
348348
--data @payload.json \
349-
https://app.terraform.io/api/v2/teams/team-BUHBEM97xboT8TVz/authentication-tokens
349+
https://app.terraform.io/api/v2/teams/team-BUHBEM97xboT8TVz/authentication-token
350350
```
351351

352352
### Sample response

0 commit comments

Comments
 (0)