Validate Movespec Draft
curl --request POST \
--url https://api.kynasmith.dev/api/movespecs/{movespec_id}/draft/validate \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kynasmith.dev/api/movespecs/{movespec_id}/draft/validate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kynasmith.dev/api/movespecs/{movespec_id}/draft/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true,
"target_id": "<string>",
"target_type": "draft",
"validated_at": "<string>",
"errors": [
{
"code": "<string>",
"message": "<string>",
"severity": "error",
"column": 123,
"line": 123,
"path": "<string>"
}
],
"warnings": [
{
"code": "<string>",
"message": "<string>",
"severity": "error",
"column": 123,
"line": 123,
"path": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}movespecs
Validate Movespec Draft
Validate the current draft through the shared backend loader.
POST
/
api
/
movespecs
/
{movespec_id}
/
draft
/
validate
Validate Movespec Draft
curl --request POST \
--url https://api.kynasmith.dev/api/movespecs/{movespec_id}/draft/validate \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kynasmith.dev/api/movespecs/{movespec_id}/draft/validate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kynasmith.dev/api/movespecs/{movespec_id}/draft/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true,
"target_id": "<string>",
"target_type": "draft",
"validated_at": "<string>",
"errors": [
{
"code": "<string>",
"message": "<string>",
"severity": "error",
"column": 123,
"line": 123,
"path": "<string>"
}
],
"warnings": [
{
"code": "<string>",
"message": "<string>",
"severity": "error",
"column": 123,
"line": 123,
"path": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}Authorizations
BearerAccessTokenBearerAccessToken
Backend-issued machine access token for project-scoped API access.
Path Parameters
Response
Successful Response
Structured validation envelope for public MoveSpec draft and version checks.
Whether the YAML is valid for runtime use.
Identifier for the validated target.
What public MoveSpec target was validated.
Available options:
draft, movespec_version, scratch ISO-8601 UTC timestamp for the validation run.
Validation errors that block runtime loading.
Show child attributes
Show child attributes
Non-blocking validation warnings.
Show child attributes
Show child attributes