curl --request POST \
--url https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"done": false,
"item_ids": [
"<string>"
],
"note": "<string>",
"reason": "<string>",
"updated_at": "<string>"
}
'import requests
url = "https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss"
payload = {
"done": False,
"item_ids": ["<string>"],
"note": "<string>",
"reason": "<string>",
"updated_at": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
done: false,
item_ids: ['<string>'],
note: '<string>',
reason: '<string>',
updated_at: '<string>'
})
};
fetch('https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'done' => false,
'item_ids' => [
'<string>'
],
'note' => '<string>',
'reason' => '<string>',
'updated_at' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss"
payload := strings.NewReader("{\n \"done\": false,\n \"item_ids\": [\n \"<string>\"\n ],\n \"note\": \"<string>\",\n \"reason\": \"<string>\",\n \"updated_at\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"done\": false,\n \"item_ids\": [\n \"<string>\"\n ],\n \"note\": \"<string>\",\n \"reason\": \"<string>\",\n \"updated_at\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"done\": false,\n \"item_ids\": [\n \"<string>\"\n ],\n \"note\": \"<string>\",\n \"reason\": \"<string>\",\n \"updated_at\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"action": {
"id": "<string>",
"payload": {},
"priority": 123,
"status": "<string>",
"title": "<string>",
"type": "<string>",
"account_id": "<string>",
"account_name": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"assignee": {
"id": "<string>",
"name": "<string>"
},
"conversation_id": "<string>",
"created_at": "<string>",
"description": "<string>",
"dismiss_reason": "<string>",
"dismissed_at": "<string>",
"executed_at": "<string>",
"execution_result": {},
"last_activity_at": "<string>",
"meeting_start": "<string>",
"meeting_title": "<string>",
"original_payload": {},
"resolution": "<string>",
"resolved_by": {
"id": "<string>",
"name": "<string>"
},
"source": "<string>",
"source_id": "<string>",
"updated_at": "<string>"
},
"conversation_status": {
"status": "<string>",
"previous": "<string>",
"previous_status_id": 123,
"status_id": 123
},
"message": "<string>",
"success": true
}Dismiss an action
Dismisses an open action, as the app’s Dismiss does: nothing is sent. learning_intent and note tell the agent why, as the app’s dismiss sheet does; done marks a loop-in done (then the conversation’s status is decided, as the app does, unless the key reads no conversations or a book role may not change it: then conversation_status is null). Returns the action. Done as the key’s person, as they would in the app: only a person’s key may (403 for any other), on an action GET opens for them (else a 404). The app’s refusals come back as they are: 409 for an action already carried out or dismissed, or one a teammate holds.
curl --request POST \
--url https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"done": false,
"item_ids": [
"<string>"
],
"note": "<string>",
"reason": "<string>",
"updated_at": "<string>"
}
'import requests
url = "https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss"
payload = {
"done": False,
"item_ids": ["<string>"],
"note": "<string>",
"reason": "<string>",
"updated_at": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
done: false,
item_ids: ['<string>'],
note: '<string>',
reason: '<string>',
updated_at: '<string>'
})
};
fetch('https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'done' => false,
'item_ids' => [
'<string>'
],
'note' => '<string>',
'reason' => '<string>',
'updated_at' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss"
payload := strings.NewReader("{\n \"done\": false,\n \"item_ids\": [\n \"<string>\"\n ],\n \"note\": \"<string>\",\n \"reason\": \"<string>\",\n \"updated_at\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"done\": false,\n \"item_ids\": [\n \"<string>\"\n ],\n \"note\": \"<string>\",\n \"reason\": \"<string>\",\n \"updated_at\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/workbench/actions/{action_id}/dismiss")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"done\": false,\n \"item_ids\": [\n \"<string>\"\n ],\n \"note\": \"<string>\",\n \"reason\": \"<string>\",\n \"updated_at\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"action": {
"id": "<string>",
"payload": {},
"priority": 123,
"status": "<string>",
"title": "<string>",
"type": "<string>",
"account_id": "<string>",
"account_name": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"assignee": {
"id": "<string>",
"name": "<string>"
},
"conversation_id": "<string>",
"created_at": "<string>",
"description": "<string>",
"dismiss_reason": "<string>",
"dismissed_at": "<string>",
"executed_at": "<string>",
"execution_result": {},
"last_activity_at": "<string>",
"meeting_start": "<string>",
"meeting_title": "<string>",
"original_payload": {},
"resolution": "<string>",
"resolved_by": {
"id": "<string>",
"name": "<string>"
},
"source": "<string>",
"source_id": "<string>",
"updated_at": "<string>"
},
"conversation_status": {
"status": "<string>",
"previous": "<string>",
"previous_status_id": 123,
"status_id": 123
},
"message": "<string>",
"success": true
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Path Parameters
Body
Response
Successful Response
Was this page helpful?