diff --git a/swagger/paths/index.yml b/swagger/paths/index.yml index e4aa9faee..daa311528 100644 --- a/swagger/paths/index.yml +++ b/swagger/paths/index.yml @@ -310,8 +310,6 @@ - $ref: '#/parameters/inbox_id' get: $ref: ./application/inboxes/inbox_members/show.yml - delete: - $ref: ./application/inboxes/inbox_members/delete.yml /api/v1/accounts/{account_id}/inbox_members: parameters: @@ -320,6 +318,8 @@ $ref: ./application/inboxes/inbox_members/create.yml patch: $ref: ./application/inboxes/inbox_members/update.yml + delete: + $ref: ./application/inboxes/inbox_members/delete.yml diff --git a/swagger/swagger.json b/swagger/swagger.json index f11f922ab..705195f1c 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -3369,62 +3369,6 @@ "description": "Access denied" } } - }, - "delete": { - "tags": [ - "Inboxes" - ], - "operationId": "delete-agent-in-inbox", - "summary": "Remove an Agent from Inbox", - "description": "Remove an Agent from Inbox", - "security": [ - { - "userApiKey": [ - - ] - } - ], - "parameters": [ - { - "name": "data", - "in": "body", - "required": true, - "schema": { - "type": "object", - "required": [ - "inbox_id", - "user_ids" - ], - "properties": { - "inbox_id": { - "type": "string", - "description": "The ID of the inbox" - }, - "user_ids": { - "type": "array", - "items": { - "type": "integer" - }, - "description": "IDs of users to be deleted from the inbox" - } - } - } - } - ], - "responses": { - "200": { - "description": "Success" - }, - "404": { - "description": "Inbox not found" - }, - "403": { - "description": "Access denied" - }, - "422": { - "description": "User must exist" - } - } } }, "/api/v1/accounts/{account_id}/inbox_members": { @@ -3558,6 +3502,62 @@ "description": "User must exist" } } + }, + "delete": { + "tags": [ + "Inboxes" + ], + "operationId": "delete-agent-in-inbox", + "summary": "Remove an Agent from Inbox", + "description": "Remove an Agent from Inbox", + "security": [ + { + "userApiKey": [ + + ] + } + ], + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "required": [ + "inbox_id", + "user_ids" + ], + "properties": { + "inbox_id": { + "type": "string", + "description": "The ID of the inbox" + }, + "user_ids": { + "type": "array", + "items": { + "type": "integer" + }, + "description": "IDs of users to be deleted from the inbox" + } + } + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "404": { + "description": "Inbox not found" + }, + "403": { + "description": "Access denied" + }, + "422": { + "description": "User must exist" + } + } } }, "/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages": {