SautiDesk
SautiDesk API
Workspace configuration

Create a call or ticket outcome

POST
/v1/desk/outcomes

Creates an outcome. The query kind (call by default, or ticket) picks the list. In the body, effect says what it does: a call outcome is resolved, unresolved or callback (it resolves, leaves the ticket open or promises a call back); a ticket outcome is resolved, waiting, escalated or other.

Requires: desk.admin scope, workspace owner or admin.

Authorization

bearerAuth
AuthorizationBearer <token>

A SautiDesk API key. An owner or admin makes it under Settings in SautiDesk for a named person and picks the scopes. The key is shown once. Send it as Authorization: Bearer <key>. It acts as that person and as nobody else.

In: header

Query Parameters

kind?string

call (the default) or ticket.

Request Body

application/json

Response

Created

Example

{  "id": "3f2b8c1e-5a4d-4e7b-9c10-2d6a8e4f1b37",  "name": "Amina Wanjiru",  "effect": "example",  "requires_note": false,  "position": 1}
FieldTypeDescription
idrequiredstring (uuid)
namerequiredstringA name for it.
effectrequiredstringWhat closing the call does to the ticket, as the outcome's settings define.
requires_noterequiredbooleanTrue if the person must write a note before they can choose this outcome.
positionrequiredintegerWhere it sits in the list, starting at 0.
curl -X POST "https://api.sautidesk.com/v1/desk/outcomes" \  -H "Content-Type: application/json" \  -d '{    "name": "Amina Wanjiru",    "effect": "example",    "requires_note": false  }'