Skip to main content
POST
Marks an open assigned action as done, as the key’s user. Logged actions are saved as done when they’re created, so only assigned actions can be completed.
Actions must be enabled for your workspace. Contact Xenia to enable it. Until then, every Actions endpoint returns 403 with “Actions are not enabled for this workspace.”

Permissions

The key acts as its default user, or the user in the x-client-user header (who must be in the workspace). That user’s location access and role permissions apply. The user must be one of the action’s assignees (directly, or through their team, their location, or their role at the store) or the user who created it. Without Can View Actions on the user’s role, only an assignee can complete it.

Path parameters

string<uuid>
required
UUID of the workspace. Must be the workspace your API key is bound to.
string<uuid>
required
UUID of the action.

Body

All fields are optional.
string
Up to 10,000 characters. A blank note is saved as no note.
string[]
Up to 20 file keys from Upload a File. At least one is required when the action’s evidenceRequired is photo.

Response

Returns 200 with { "data": <action> }. The action now has status: "done", and completion is { "kind": "done", "completedAt", "completedBy": { "id", "name" }, "note", "attachments" }.

Errors

Errors return the message at error.message.
The 422 body is { "error": { "message": "..." } } only, without the extra fields shown on the Error handling page.