docs: use clearly invalid tokens (#114842)

This commit is contained in:
Mariell Hoversholm
2025-12-04 15:25:59 +01:00
committed by GitHub
parent 994e1dd58f
commit 64a3c298cf
10 changed files with 35 additions and 35 deletions
@@ -53,7 +53,7 @@ See note in the [introduction](#team-api) for an explanation.
GET /api/teams/search?perpage=10&page=1&query=mytestteam HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
Authorization: Bearer glsa_iNValIdinValiDinvalidinvalidinva_5b582697
```
**Example Response**:
@@ -119,7 +119,7 @@ See note in the [introduction](#team-api) for an explanation.
- **200** - Ok
- **401** - Unauthorized
- **403** - Permission denied
- **403** - Permission denied
- **404** - Team not found
## Add Team
@@ -165,7 +165,7 @@ See note in the [introduction](#team-api) for an explanation.
There are two fields that can be updated for a team: `name` and `email`.
`PUT /api/teams/:id`
`PUT /api/teams/:id`
**Required permissions**
@@ -209,7 +209,7 @@ See note in the [introduction](#team-api) for an explanation.
See note in the [introduction](#team-api) for an explanation.
| Action | Scope |
| Action | Scope |
| ------------ | -------- |
| teams:delete | teams:\* |
@@ -252,7 +252,7 @@ See note in the [introduction](#team-api) for an explanation.
**Example Request**:
```http
GET /api/teams/1/members HTTP/1.1
GET /api/teams/1/members HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer glsa_iNValIdinValiDinvalidinvalidinva_5b582697
@@ -289,7 +289,7 @@ See note in the [introduction](#team-api) for an explanation.
```http
POST /api/teams/1/members HTTP/1.1
Accept: application/json
Content-Type: application/json
Content-Type: application/json
Authorization: Bearer glsa_iNValIdinValiDinvalidinvalidinva_5b582697
```
@@ -342,7 +342,7 @@ See note in the [introduction](#team-api) for an explanation.
Status Codes:
- **200** - Ok
- **401** - Unauthorized
- **401** - Unauthorized
- **403** - Permission denied
- **404** - Team not found/Team member not found
@@ -384,7 +384,7 @@ See note in the [introduction](#team-api) for an explanation.
{"message":"Team memberships have been updated"}
```
Status Codes:
Status Codes:
- **200** - Ok
- **401** - Unauthorized
@@ -424,7 +424,7 @@ See note in the [introduction](#team-api) for an explanation.
"homeDashboardId": 0,
"homeDashboardUID": "",
"timezone": ""
}
}
```
## Update Team Preferences