Skip to main content
PUT
/
api
/
movespecs
/
{movespec_id}
/
draft
Update Movespec Draft
curl --request PUT \
  --url https://api.kynasmith.dev/api/movespecs/{movespec_id}/draft \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "yaml_source": "<string>"
}
'
{
  "draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "movespec_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updated_at": "2023-11-07T05:31:56Z",
  "yaml_source": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.kynasmith.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Backend-issued machine access token for project-scoped API access.

Headers

Idempotency-Key
string | null

Path Parameters

movespec_id
string<uuid>
required

Body

application/json

Replace-draft request payload.

yaml_source
string
required

Full mutable YAML source to persist.

Response

Successful Response

Mutable draft resource for one MoveSpec.

The updated_by field has been moved to MoveSpecDraftFirstPartyResource as it exposes internal actor identifiers (#31).

draft_id
string<uuid>
required

Draft identifier.

movespec_id
string<uuid>
required

Owning MoveSpec identifier.

updated_at
string<date-time>
required

Last draft update timestamp.

yaml_source
string
required

Mutable YAML source under active authoring.