Repository navigation
Closed
Labels
Description
👟 Reproduction steps
Try to pass attachments to the update email endpoint
👍 Expected behavior
The param is available
👎 Actual Behavior
The param is not available:
appwrite/app/controllers/api/messaging.php
Lines 3248 to 3273 in 2993537
| App::patch('/v1/messaging/messages/email/:messageId') | |
| ->desc('Update email') | |
| ->groups(['api', 'messaging']) | |
| ->label('audits.event', 'message.update') | |
| ->label('audits.resource', 'message/{response.$id}') | |
| ->label('event', 'messages.[messageId].update') | |
| ->label('scope', 'messages.write') | |
| ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) | |
| ->label('sdk.namespace', 'messaging') | |
| ->label('sdk.method', 'updateEmail') | |
| ->label('sdk.description', '/docs/references/messaging/update-email.md') | |
| ->label('sdk.response.code', Response::STATUS_CODE_OK) | |
| ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) | |
| ->label('sdk.response.model', Response::MODEL_MESSAGE) | |
| ->param('messageId', '', new UID(), 'Message ID.') | |
| ->param('topics', null, new ArrayList(new UID()), 'List of Topic IDs.', true) | |
| ->param('users', null, new ArrayList(new UID()), 'List of User IDs.', true) | |
| ->param('targets', null, new ArrayList(new UID()), 'List of Targets IDs.', true) | |
| ->param('subject', null, new Text(998), 'Email Subject.', true) | |
| ->param('content', null, new Text(64230), 'Email Content.', true) | |
| ->param('draft', null, new Boolean(), 'Is message a draft', true) | |
| ->param('html', null, new Boolean(), 'Is content of type HTML', true) | |
| ->param('cc', null, new ArrayList(new UID()), 'Array of target IDs to be added as CC.', true) | |
| ->param('bcc', null, new ArrayList(new UID()), 'Array of target IDs to be added as BCC.', true) | |
| ->param('scheduledAt', null, new DatetimeValidator(requireDateInFuture: true), 'Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.', true) | |
| ->inject('queueForEvents') |
For reference, it's available in the create email endpoint:
appwrite/app/controllers/api/messaging.php
Line 2595 in 2993537
| ->param('attachments', [], new ArrayList(new CompoundUID()), 'Array of compound bucket IDs to file IDs to be attached to the email.', true) |
Originally posted by @stnguyen90 in #7681 (comment)
🎲 Appwrite version
Version 1.5.x
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity