Skip to content

Commit c3bf9bb

Browse files
sweetmantechclaude
andcommitted
docs: roll back account_id query param on GET /api/chats/{id}/messages
The override param is redundant for this endpoint: the chat is fully identified by the path {id}, and selectRoom already resolves room.account_id, so admin access should be handled by an admin-aware access check in validateChatAccess (RECOUP_ORG bypass), not by an extra query param the caller would have to supply. Keeps the DELETE /api/artists/{id} body override, where the param is load-bearing (it names whose ownership link to drop). Refs recoupable/chat#1811 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5a71523 commit c3bf9bb

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

api-reference/openapi/research.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -343,16 +343,6 @@
343343
"type": "string",
344344
"format": "uuid"
345345
}
346-
},
347-
{
348-
"name": "account_id",
349-
"in": "query",
350-
"description": "Read messages in the context of a specific account. Only applicable when the authenticated account has access to multiple accounts via organization membership or Recoup admin access.",
351-
"required": false,
352-
"schema": {
353-
"type": "string",
354-
"format": "uuid"
355-
}
356346
}
357347
],
358348
"responses": {
@@ -367,7 +357,7 @@
367357
}
368358
},
369359
"400": {
370-
"description": "Bad request - invalid chat id or account_id",
360+
"description": "Bad request - invalid chat id",
371361
"content": {
372362
"application/json": {
373363
"schema": {

0 commit comments

Comments
 (0)