import Moonbase from '@moonbaseai/sdk';const client = new Moonbase({ apiKey: process.env['MOONBASE_API_KEY'], // This is the default and can be omitted});await client.inboxMessages.attachments.delete('id', { inbox_message_id: 'inbox_message_id' });
{ "type": "errors", "errors": [ { "type": "error", "status": "400", "title": "Bad Request", "detail": "The request could not be understood due to malformed syntax or invalid parameters." } ]}
Messages
Remove an attachment
Removes an attachment from a draft message.
DELETE
/
inbox_messages
/
{inbox_message_id}
/
attachments
/
{id}
JavaScript
import Moonbase from '@moonbaseai/sdk';const client = new Moonbase({ apiKey: process.env['MOONBASE_API_KEY'], // This is the default and can be omitted});await client.inboxMessages.attachments.delete('id', { inbox_message_id: 'inbox_message_id' });
{ "type": "errors", "errors": [ { "type": "error", "status": "400", "title": "Bad Request", "detail": "The request could not be understood due to malformed syntax or invalid parameters." } ]}