Skip to content

ENG-374: Update add_labels and remove_labels to accept string or array#111

Open
josephfeleke wants to merge 1 commit intomainfrom
joseph/eng-374-update-message-label-docs
Open

ENG-374: Update add_labels and remove_labels to accept string or array#111
josephfeleke wants to merge 1 commit intomainfrom
joseph/eng-374-update-message-label-docs

Conversation

@josephfeleke
Copy link

add_labels and remove_labels in UpdateMessageRequest now accept either a single string or a list of strings, matching the API change merged in agentmail-to/agentmail-api.

Added UpdateMessageLabels union type (following the existing Addresses pattern) and updated both fields to use it.

@github-actions
Copy link

✨ API Changes

# API Changelog n/a vs. n/a

## POST /v0/inboxes/{inbox_id}/drafts/{draft_id}/send
- :warning: the request property 'add_labels' became not nullable
- :warning: the request property 'remove_labels' became not nullable
-  request property 'add_labels' list-of-types was widened by adding types 'string' to media type 'application/json'
-  request property 'remove_labels' list-of-types was widened by adding types 'string' to media type 'application/json'


## PATCH /v0/inboxes/{inbox_id}/messages/{message_id}
- :warning: the request property 'add_labels' became not nullable
- :warning: the request property 'remove_labels' became not nullable
-  request property 'add_labels' list-of-types was widened by adding types 'string' to media type 'application/json'
-  request property 'remove_labels' list-of-types was widened by adding types 'string' to media type 'application/json'

💡 Download api-changelog-diff artifact or tag @fern Writer in #github-prs for changelog.

@github-actions
Copy link

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant