Write the answer to a task
PUT
/api/staff-trials/{accountId}/items/{itemId}/answerOnly the person on the trial. An empty answer clears it.
AuthorizationBearer <token>
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
accountId*string
Format
uuiditemId*string
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/api/staff-trials/497f6eca-6276-4993-bfeb-53cbbbba6f08/items/497f6eca-6276-4993-bfeb-53cbbbba6f08/answer" \ -H "Content-Type: application/json" \ -d '{ "answer": null }'{ "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9", "username": "string", "buddyId": "439ab535-2456-425e-a0d5-d66aad0e447f", "buddyName": "string", "startedAt": "2019-08-24T14:15:22Z", "buddyNote": null, "buddyNoteAt": null, "closedAt": null, "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "string", "text": "string", "answer": null, "answeredAt": null, "signedOffAt": null, "signedOffBy": null } ], "canAnswer": true, "canSignOff": true, "canManage": true}Close a trial POST
The trial stops counting as running and gets no more reminders. The checklist, answers and sign-offs stay. Needs Manage users, and the account must be below your highest role.
Sign a line off, or take the sign-off back PUT
The buddy, or anyone who manages users, but never the person on the trial.