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
Response
Successful Response
Structured validation envelope for public MoveSpec draft and version checks.