Accountant Portal
Close a "mail needs you" task (#4343)
Changed onPenny files a mail_flag task for Jacob when a client's mail requires him or his response. He closes it as replied, no_reply_needed, or sent_back to Penny with a note (required for sent_back). The task completes in the same write, and the action (with the note) is stored as its answer, stamped with who closed it and when, for Penny to read back from GET /accountant/tasks. Nothing is sent to the client. Only the task's owner while assigned to its customer, or a human super-admin, may close it. Every API key is refused, the agent's service token included. A closed task answers 409 MAIL_FLAG_ALREADY_CLOSED; any other task type answers 422.
post/accountant/tasks/{taskId}/mail-flag-close
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
taskId, string uuid required
Request body
object required
action, 'replied' | 'no_reply_needed' | 'sent_back' required
note, string
Required for sent_back.
Response
The task, closed
object required
success, true required
data, object required
Changes
- info
endpoint added
- info