In this guide:
Description
This API endpoint can be used to release a currently held message based on the Find Held Messages API endpoint
Pre-requisites
- In order to successfully use this endpoint the logged in user must be a Mimecast administrator with at least the Account | Monitoring | Held | Edit permission.
URI
To use this endpoint you send a POST request to:
- /api/gateway/hold-release
Request Headers
The following request headers must be included in your request:
Field | Description |
---|---|
Authorization | Please see the Authorization guide for more information on building the Authorization header. |
x-mc-req-id |
A randomly generated GUID, for example,
|
x-mc-app-id | The Application ID provided with your Registered API Application. |
x-mc-date |
The current date and time in the following format, for example,
|
Request Body
{
"data": [
{
"id": "String"
}
]
}
data
Field | Type | Required | Description |
---|---|---|---|
id | String | Required | The Mimecast secure id of a message, which can be found using the Find Held Messages API endpoint |
Response
{
"fail": [],
"meta": {
"status": 200
},
"data": [
{
"release": "Boolean",
"id": "String"
}
]
}
meta object
Field | Type | Description |
---|---|---|
status | Number | The function level status of the request. |
meta
Field | Type | Description |
---|---|---|
status | Number | The function level status of the request. |
data
Field | Type | Description |
---|---|---|
release | Boolean | Returns true if the message was released |
id | String | The Mimecast secure id of the message hold |
Sample Code
Sample code is provided to demonstrate how to use the API and is not representative of a production application. To use the sample code; complete the required variables as described, populate the desired values in the request body, and execute in your favorite IDE. Please see the Global Base URL's page to find the correct base URL to use for your account.
POST {base_url}/api/gateway/hold-release
Authorization: MC {accesskKey}:{Base64 encoded signed Data To Sign}
x-mc-date: {dateTime}
x-mc-req-id: {unique id}
x-mc-app-id: {applicationId}
Content-Type: application/json
Accept: application/json
{
"data":[
{
"id": "String"
}
]
}