From 2e19de5d0169bc91ca2619cc76467f46cbb03d95 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Thu, 14 Jan 2021 20:36:04 +0530 Subject: [PATCH] chore: Update Contact Inbox create API documentation (#1650) --- swagger/paths/contact_inboxes/create.yml | 13 ++++++++++--- swagger/swagger.json | 16 +++++++++++++--- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/swagger/paths/contact_inboxes/create.yml b/swagger/paths/contact_inboxes/create.yml index ec28c1a87..c6943d162 100644 --- a/swagger/paths/contact_inboxes/create.yml +++ b/swagger/paths/contact_inboxes/create.yml @@ -5,9 +5,16 @@ post: description: Create a contact inbox record for an inbox summary: Create contact inbox parameters: - - name: inbox_id - in: params - type: number + - name: data + in: body + required: true + schema: + type: object + properties: + inbox_id: + type: number + description: The id of the inbox + required: true responses: 200: description: Success diff --git a/swagger/swagger.json b/swagger/swagger.json index f9781f24a..1fe6583a8 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -948,9 +948,19 @@ "summary": "Create contact inbox", "parameters": [ { - "name": "inbox_id", - "in": "params", - "type": "number" + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "inbox_id": { + "type": "number", + "description": "The id of the inbox", + "required": true + } + } + } } ], "responses": {