From 6e9a60aa112329de858b5116ec63d36984b9c5bc Mon Sep 17 00:00:00 2001 From: Cyril Le Roy Date: Thu, 28 Jul 2022 19:04:05 +0200 Subject: [PATCH] Better: Add created_at filtering for Attachment API RD-22307 (#95) * Better: Add created_at filtering for Attachment API RD-22307 * Update specs/engage-digital_openapi3.yaml Co-authored-by: Yoann Lecuyer * Update specs/engage-digital_openapi3.yaml Co-authored-by: Yoann Lecuyer Co-authored-by: Cyril Le Roy Co-authored-by: Yoann Lecuyer --- specs/engage-digital_openapi3.yaml | 18 +++++++++++++++++- specs/engage-digital_postman2.json | 12 ++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/specs/engage-digital_openapi3.yaml b/specs/engage-digital_openapi3.yaml index 487a1491..99e5ff4e 100644 --- a/specs/engage-digital_openapi3.yaml +++ b/specs/engage-digital_openapi3.yaml @@ -267,6 +267,22 @@ paths: required: false schema: type: string + - description: >- + Search parameter to get attachments created before a ISO 8601 datetime (inclusive) + + in: query + name: created_before + required: false + schema: + type: date + - description: >- + Search parameter to get attachments created after a ISO 8601 datetime (inclusive) + + in: query + name: created_after + required: false + schema: + type: date responses: '200': content: @@ -4976,7 +4992,7 @@ paths: Authorization​: for that call to succeed several conditions are required: - - the task must be in an agent’s workbin. + - the task must be in an agent’s workbin. - the access token user must either own the task or be able to monitor all tasks or be able to monitor his team’s tasks if the task is owned by one of his team member. operationId: completeTask parameters: diff --git a/specs/engage-digital_postman2.json b/specs/engage-digital_postman2.json index d03ed2b4..98ab453d 100644 --- a/specs/engage-digital_postman2.json +++ b/specs/engage-digital_postman2.json @@ -414,6 +414,18 @@ "value": "\u003cstring\u003e", "description": "Search parameter for file extension (e.g. pdf, xlsx, jpg...)", "disabled": true + }, + { + "key": "created_before", + "value": "\u003cdate\u003e", + "description": "Search parameter to get attachments created before a ISO 8601 date", + "disabled": true + }, + { + "key": "created_after", + "value": "\u003cdate\u003e", + "description": "Search parameter to get attachments created after a ISO 8601 date", + "disabled": true } ] },