-
Notifications
You must be signed in to change notification settings - Fork 0
Update admin-openapi-1.2.59.yaml to support campaign custom fields: #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1435,6 +1435,11 @@ paths: | |||||||||||||||||||||
| description: Traffic channels name | ||||||||||||||||||||||
| items: | ||||||||||||||||||||||
| type: string | ||||||||||||||||||||||
| customFields: | ||||||||||||||||||||||
| type: array | ||||||||||||||||||||||
| description: List of available custom field definitions for campaigns | ||||||||||||||||||||||
| items: | ||||||||||||||||||||||
| type: string | ||||||||||||||||||||||
| in: query | ||||||||||||||||||||||
| name: filters | ||||||||||||||||||||||
| post: | ||||||||||||||||||||||
|
|
@@ -11114,6 +11119,67 @@ paths: | |||||||||||||||||||||
| x-examples: | ||||||||||||||||||||||
| Example 1: | ||||||||||||||||||||||
| message: This is a Note | ||||||||||||||||||||||
| '/v2/customfields/campaign': | ||||||||||||||||||||||
| get: | ||||||||||||||||||||||
| summary: Get Campaign Custom Fields | ||||||||||||||||||||||
| operationId: campaign-customfields-findAll | ||||||||||||||||||||||
| tags: | ||||||||||||||||||||||
| - Campaigns | ||||||||||||||||||||||
| description: > | ||||||||||||||||||||||
| Returns the list of custom fields that can be used to filter campaigns. | ||||||||||||||||||||||
| Each custom field includes its key, label, type and any allowed values. | ||||||||||||||||||||||
| security: | ||||||||||||||||||||||
| - API Key Param: [] | ||||||||||||||||||||||
| responses: | ||||||||||||||||||||||
| '200': | ||||||||||||||||||||||
| description: OK | ||||||||||||||||||||||
| content: | ||||||||||||||||||||||
| application/json: | ||||||||||||||||||||||
| schema: | ||||||||||||||||||||||
| type: object | ||||||||||||||||||||||
| properties: | ||||||||||||||||||||||
| fields: | ||||||||||||||||||||||
| type: array | ||||||||||||||||||||||
| items: | ||||||||||||||||||||||
| type: object | ||||||||||||||||||||||
| properties: | ||||||||||||||||||||||
| _id: | ||||||||||||||||||||||
| type: string | ||||||||||||||||||||||
| label: | ||||||||||||||||||||||
| type: string | ||||||||||||||||||||||
| type: | ||||||||||||||||||||||
| type: string | ||||||||||||||||||||||
| description: Field input type (e.g. text, select) | ||||||||||||||||||||||
| name: | ||||||||||||||||||||||
| type: string | ||||||||||||||||||||||
| required: | ||||||||||||||||||||||
| type: boolean | ||||||||||||||||||||||
| id: | ||||||||||||||||||||||
| type: string | ||||||||||||||||||||||
| hidden: | ||||||||||||||||||||||
| type: boolean | ||||||||||||||||||||||
| validation: | ||||||||||||||||||||||
| nullable: true | ||||||||||||||||||||||
| isConsent: | ||||||||||||||||||||||
|
Comment on lines
+11160
to
+11163
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Define an explicit schema for Line 11162 sets 🛠️ Suggested schema shape validation:
- nullable: true
+ type: object
+ nullable: true
+ additionalProperties: true📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||
| type: boolean | ||||||||||||||||||||||
| options: | ||||||||||||||||||||||
| type: array | ||||||||||||||||||||||
| items: | ||||||||||||||||||||||
| type: string | ||||||||||||||||||||||
| pub_hide: | ||||||||||||||||||||||
| type: integer | ||||||||||||||||||||||
| description: Visibility flag for publishers | ||||||||||||||||||||||
| '400': | ||||||||||||||||||||||
| description: Bad Request | ||||||||||||||||||||||
| content: | ||||||||||||||||||||||
| application/json: | ||||||||||||||||||||||
| schema: | ||||||||||||||||||||||
| type: object | ||||||||||||||||||||||
| properties: | ||||||||||||||||||||||
| errors: | ||||||||||||||||||||||
| type: array | ||||||||||||||||||||||
| items: | ||||||||||||||||||||||
| $ref: ./models/error.v1.yaml | ||||||||||||||||||||||
| '/v2/publishers/{pubId}/notes': | ||||||||||||||||||||||
| parameters: | ||||||||||||||||||||||
| - schema: | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify which identifier
filters.customFieldsaccepts.Line 1440 doesn’t specify whether items are
id,_id, orname, which can lead to mismatched filters in client integrations.✍️ Suggested doc tweak
customFields: type: array - description: List of available custom field definitions for campaigns + description: List of campaign custom field identifiers to filter by (specify which identifier—e.g., `id` or `_id`—is expected). items: type: string📝 Committable suggestion
🤖 Prompt for AI Agents