diff options
Diffstat (limited to 'lists.sr.ht')
-rw-r--r-- | lists.sr.ht/api.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lists.sr.ht/api.md b/lists.sr.ht/api.md index b985633..517c963 100644 --- a/lists.sr.ht/api.md +++ b/lists.sr.ht/api.md @@ -265,7 +265,7 @@ List of [patchset resources](#patchset-resource) posted to this list. **OAuth scope**: `patches:read` -### GET /api/user/:username/lists/:list-name/patchsets +### GET /api/lists/:list-name/patchsets Equivalent to [/api/user/:username/lists/:list-name/patchsets](#GET-apiuserusernamelistslist-namepatchsets), @@ -279,7 +279,7 @@ Retrieves a [patchset resource](#patchset-resource). **OAuth scope**: `patches:read` -### GET /api/user/:username/lists/:list-name/patchsets/:id +### GET /api/lists/:list-name/patchsets/:id Equivalent to [/api/user/:username/lists/:list-name/patchsets/:id](#GET-apiuserusernamelistslist-namepatchsetsid), @@ -291,7 +291,7 @@ implies the authenticated user. Updates a [patchset resource](#patchset-resource). -**OAuth scope**: `patches:read` +**OAuth scope**: `patches:write` **Request body** @@ -305,13 +305,13 @@ Updates a [patchset resource](#patchset-resource). The updated [patchset resource](#patchset-resource). -### PUT /api/user/:username/lists/:list-name/patchsets/:id +### PUT /api/lists/:list-name/patchsets/:id Equivalent to -[/api/user/:username/lists/:list-name/patchsets/:id](#GET-apiuserusernamelistslist-namepatchsetsid), +[/api/user/:username/lists/:list-name/patchsets/:id](#PUT-apiuserusernamelistslist-namepatchsetsid), implies the authenticated user. -**OAuth scope**: `patches:read` +**OAuth scope**: `patches:write` ### PUT /api/user/:username/lists/:list-name/patchsets/:id/tools @@ -351,7 +351,7 @@ in this patchset. **OAuth scope**: `patches:read` -### GET /api/user/:username/lists/:list-name/patchsets/:id/patches +### GET /api/lists/:list-name/patchsets/:id/patches Equivalent to [/api/user/:username/lists/:list-name/patchsets/:id/patches](#GET-apiuserusernamelistslist-namepatchsetsidpatches), |