-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Custom filter api docs updated (#3668)
- Loading branch information
1 parent
3e8ae38
commit e304ad2
Showing
4 changed files
with
211 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
tags: | ||
- Contact | ||
operationId: contactFilter | ||
description: Filter contacts with custom filter options and pagination | ||
summary: Contact Filter | ||
security: | ||
- userApiKey: [] | ||
- agentBotApiKey: [] | ||
parameters: | ||
- name: page | ||
in: query | ||
type: integer | ||
- name: payload | ||
in: body | ||
required: true | ||
schema: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
attribute_key: | ||
type: string | ||
description: filter attribute name | ||
filter_operator: | ||
type: string | ||
description: filter operator name | ||
enum: [ equal_to, not_equal_to, contains, does_not_contain ] | ||
values: | ||
type: array | ||
items: | ||
type: string | ||
description: array of the attribute values to filter | ||
query_operator: | ||
type: string | ||
description: query operator name | ||
enum: [ AND, OR ] | ||
example: | ||
- attribute_key: 'name' | ||
filter_operator: 'equal_to' | ||
values: ['en'] | ||
query_operator: 'AND' | ||
- attribute_key: 'country_code' | ||
filter_operator: 'equal_to' | ||
values: ['us'] | ||
query_operator: nil | ||
|
||
responses: | ||
200: | ||
description: Success | ||
schema: | ||
$ref: '#/definitions/contact_list' | ||
400: | ||
description: Bad Request Error | ||
schema: | ||
$ref: '#/definitions/bad_request_error' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters