Expedite All
Request URL
POST /undo/expedite
Description
Expedites all the undoables in the queue. All actions will be performed as soon as possible.
Snippet Examples
javascript
const axios = require('axios');
const config = {
method: 'POST',
url: '${AMPLIFI_BASE_URL}/undo/expedite',
headers: {
'Content-Type': "application/json",
'token': "A long random string token received from /token request"
},
};
let result;
try {
result = await axios.request(config);
if (result.status === 200) {
console.log(JSON.stringify(result.data));
}
} catch (err) {
console.log({
errCode: err.code,
responseStatus: err.response && err.response.status,
data: err.response && JSON.stringify(err.response.data)
});
}
cURL
curl --location "AMPLIFI_BASE_URL/undo/expedite" --header "Content-Type: application/json" --header "token: A long random string token received from /token request"
Successful Response Examples
200 UNDO/EXPEDITE SUCCESSFUL RESPONSE ALL UNDOABLES ARE EXPEDITED
HEADERS
Header | Value |
---|---|
Content-Type | application/json |
token | A long random string token received from /token request |
REQUEST BODY
RESPONSE BODY