Skip to main content
PATCH
Update a template

Authorizations

Authorization
string
header
required

A Motion API key. Access is limited to its stored organization, workspace, scopes and the creator’s current permissions.

Scopes

motion:templates:write

Create, edit, share, and archive prompt templates.

Headers

Motion-API-Version
enum<string>
default:2026-11-19

Optional API version override for this request. When omitted, Motion uses the API version pinned to your API key or OAuth connection.

Available options:
2026-11-19

Path Parameters

slug
string
required

Template identifier (the id field returned by list or create templates).

Body

application/json
version_id
string<uuid>
required
title
string
Maximum string length: 120
instructions
string
Maximum string length: 12000
mode
enum<string>
Available options:
style,
layout_and_style

Response

Success

template
object
required

Saved template, current version, source generation ID and preview status.