Mailbox API – Batch Operations

Axigen Documentation

The Mailbox API is available starting with Axigen X4 (10.4).

Mail Batch Operations

Copy

Request body (JSON)

Name

Type

Required

Values

Description

destinationFolderId

String

*

The destination folder ID

ids

Array

*

The mail IDs to be copied

ranges

Array

*

The list for ranges to be copied

sortInfo

Object

*

(when using ranges)

Sorting information to be used for range calculation

One of ids or ranges is required.

Response

Depending on the size of the batch, the batch operation will be executed either synchronously or asynchronously.

Synchronous Response

Asynchronous Response

In case the batch is processed asynchronously, the end point will reply with HTTP status code: 201 Created.

Move

Request body (JSON)

Name

Type

Required

Values

Description

destinationFolderId

String

*

The destination folder ID

ids

Array

*

The mail IDs to be moved

ranges

Array

*

The list for ranges to be copied

sortInfo

Object

*

(when using ranges)

Sorting information to be used for range calculation

One of ids or ranges is required.

Response

Depending on the size of the batch, the batch operation will be either executed synchronously or asynchronously.

Synchronous Response

Asynchronous Response

In case the batch is processed asynchronously, the end point will reply with HTTP status code: 201 Created.

Delete

Request body (JSON)

Name

Type

Required

Values

Description

ids

Array

*

The mail IDs to be deleted

ranges

Array

*

The list for ranges to be copied

sortInfo

Object

*

(when using ranges)

Sorting information to be used for range calculation

One of ids or ranges is required.

Response

Depending on the size of the batch, the batch operation will be either executed synchronously or asynchronously.

Synchronous Response

Asynchronous Response

In case the batch is processed asynchronously, the end point will reply with HTTP status code: 201 Created.

Update

Request body (JSON)

Name

Type

Required

Values

Description

isUnread

Boolean

*

The unread / read value

isFlagged

Boolean

*

The flagged / not flagged value

ids

Array

*

The mail IDs to be updated

ranges

Array

*

The list for ranges to be copied

sortInfo

Object

*

(when using ranges)

Sorting information to be used for range calculation

One of ids or ranges is required.

One of isUnread or isFlagged is required.

Response

Depending on the size of the batch, the batch operation will be either executed synchronously or asynchronously.

Synchronous Response

Asynchronous Response

In case the batch is processed asynchronously, the end point will reply with HTTP status code: 201 Created.

Add Label

Request body (JSON)

Name

Type

Required

Values

Description

labelId

String

*

 

The label ID

ids

Array

*

The mail IDs to which the label should be added

ranges

Array

*

The list for ranges to be copied

sortInfo

Object

*

(when using ranges)

Sorting information to be used for range calculation

One of ids or ranges is required.

Response

Depending on the size of the batch, the batch operation will be either executed synchronously or asynchronously.

Synchronous Response

Asynchronous Response

In case the batch is processed asynchronously, the end point will reply with HTTP status code: 201 Created.

Remove Label

Request body (JSON)

Name

Type

Required

Values

Description

labelId

String

*

 

The label ID

ids

Array

*

The mail IDs from which the label should be removed

ranges

Array

*

The list for ranges to be copied

sortInfo

Object

*

(when using ranges)

Sorting information to be used for range calculation

One of ids or ranges is required.

Response

Depending on the size of the batch, the batch operation will be either executed synchronously or asynchronously.

Synchronous Response

Asynchronous Response

In case the batch is processed asynchronously, the end point will reply with HTTP status code: 201 Created.

Conversations Batch Operations

Move

Request body (JSON)

Name

Type

Required

Values

Description

destinationFolderId

String

*

The destination folder ID

ids

Array

*

The conversation IDs to be moved

ranges

Array

*

The list for ranges to be copied

sortInfo

Object

*

(when using ranges)

Sorting information to be used for range calculation

One of ids or ranges is required.

Response

Depending on the size of the batch, the batch operation will be either executed synchronously or asynchronously.

Synchronous Response

Asynchronous Response

In case the batch is processed asynchronously, the end point will reply with HTTP status code: 201 Created.

Delete

Request body (JSON)

Name

Type

Required

Values

Description

ids

Array

*

The conversation IDs to be deleted

ranges

Array

*

The list for ranges to be copied

sortInfo

Object

*

(when using ranges)

Sorting information to be used for range calculation

One of ids or ranges is required.

Response

Depending on the size of the batch, the batch operation will be either executed synchronously or asynchronously.

Synchronous Response

Asynchronous Response

In case the batch is processed asynchronously, the end point will reply with HTTP status code: 201 Created.

Update

Request body (JSON)

Name

Type

Required

Values

Description

isUnread

Boolean

*

The unread / read value

isFlagged

Boolean

*

The flagged / not flagged value

ids

Array

*

The conversation IDs to be updated

ranges

Array

*

The list for ranges to be copied

sortInfo

Object

*

(when using ranges)

Sorting information to be used for range calculation

One of ids or ranges is required.

One of isUnread or isFlagged is required.

Response

Depending on the size of the batch, the batch operation will be either executed synchronously or asynchronously.

Synchronous Response

Asynchronous Response

In case the batch is processed asynchronously, the end point will reply with HTTP status code: 201 Created.

Add Label

Request body (JSON)

Name

Type

Required

Values

Description

labelId

String

*

 

The label ID

ids

Array

*

The conversation IDs to which the label should be added

ranges

Array

*

The list for ranges to be copied

sortInfo

Object

*

(when using ranges)

Sorting information to be used for range calculation

One of ids or ranges is required.

Response

Depending on the size of the batch, the batch operation will be either executed synchronously or asynchronously.

Synchronous Response

Asynchronous Response

In case the batch is processed asynchronously, the end point will reply with HTTP status code: 201 Created.

Remove Label

Request body (JSON)

Name

Type

Required

Values

Description

labelId

String

*

 

The label ID

ids

Array

*

The conversation IDs from which the label should be removed

ranges

Array

*

The list for ranges to be copied

sortInfo

Object

*

(when using ranges)

Sorting information to be used for range calculation

One of ids or ranges is required.

Response

Depending on the size of the batch, the batch operation will be either executed synchronously or asynchronously.

Synchronous Response

Asynchronous Response

In case the batch is processed asynchronously, the end point will reply with HTTP status code: 201 Created.