Update saved reply
PATCH
https://api.flownally.com/v1/saved-replies/{id}Changes the fields that are present. Only the user who created a personal reply can
change it, and only workspace owners and admins, and API keys, can change workspace and
team replies. They can also move anyone's personal reply to scope workspace or
teams, and a reply between those two. A workspace or team reply can't become
personal. createdBy never changes.
400with codegateway_invalid_request,messaging_saved_reply_invalid_inputormessaging_saved_reply_body_invalid: as for create; moving to scopeteamsneedsteamIds.403with codemessaging_saved_reply_manage_shared_denied: an agent changed a workspace or team reply, or moved a personal one to them.403with codemessaging_saved_reply_owner_only: a workspace owner or admin, or an API key, changed another user's personal reply without moving it to scopeworkspaceorteams.404with codemessaging_saved_reply_not_found: the reply doesn't exist, or it is another user's personal reply and the caller is an agent, or it is a team reply and the caller is an agent who isn't a member of any of its teams. API keys, workspace owners and admins read every reply.404with codemessaging_saved_reply_team_not_found: a team isn't a team of the workspace, or it was deleted.422with codemessaging_saved_reply_scope_change_denied: a workspace or team reply was moved to scopepersonal.422with codemessaging_saved_reply_limit_reached: moving a personal reply would exceed 500 workspace and team replies.
Authorization
Required scopes
- saved_reply:update
Allowed roles
- owner
- admin
- agent
Update a saved reply; shared replies also require saved_reply:manage_shared.
Parameters
- Name
id- Type
- path · string
- required
Saved reply ID.
Body parameters
Send a application/json body. The body is required.
- Name
scope- Type
- SavedReplyScope
- Name
teamIds- Type
- array<string>
Replaces the reply's teams. Only for scopeteams.- Name
title- Type
- string
- Name
shortcut- Type
- string
An empty string removes the shortcut.- Name
body- Type
- SavedReplyBody
Responses
- 200Saved reply updatedSavedReplyapplication/json
- defaultErrorProblemDetailsapplication/json
Response body
A 200 response returns a SavedReply.
- Name
id- Type
- string
- required
- Name
scope- Type
- SavedReplyScope
- required
- Name
teamIds- Type
- array<string>
- required
Teams of ateamsreply. Deleting a team removes it; the reply keeps scopeteams.- Name
title- Type
- string
- required
- Name
body- Type
- SavedReplyBody
- required
- Name
uses- Type
- integer
- required
Messages accepted for sending that started from the reply. Only the Flownally inbox records uses. All-time, except in a list called withusesSince.- Name
createdAt- Type
- string
- required
- Name
updatedAt- Type
- string
- required
- Name
createdBy- Type
- string
ID of the user who created the reply. It never changes and gives no rights once the reply is shared. Absent when an API key created the reply.- Name
shortcut- Type
- string
Short name agents can type to find the reply. Not unique.- Name
lastUsedAt- Type
- string
Related schemas
Generated from the API spec.