Fork Movespec
curl --request POST \
--url https://api.kynasmith.dev/api/movespecs/{movespec_id}/fork \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"name": "<string>"
}
'import requests
url = "https://api.kynasmith.dev/api/movespecs/{movespec_id}/fork"
payload = {
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
description: '<string>',
name: '<string>'
})
};
fetch('https://api.kynasmith.dev/api/movespecs/{movespec_id}/fork', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"created_at": "2023-11-07T05:31:56Z",
"movespec_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"visibility": "private",
"archived_at": "2023-11-07T05:31:56Z",
"current_released_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"star_count": 0
}{
"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
Fork Movespec
Fork a readable MoveSpec into a new private project.
POST
/
api
/
movespecs
/
{movespec_id}
/
fork
Fork Movespec
curl --request POST \
--url https://api.kynasmith.dev/api/movespecs/{movespec_id}/fork \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"name": "<string>"
}
'import requests
url = "https://api.kynasmith.dev/api/movespecs/{movespec_id}/fork"
payload = {
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
description: '<string>',
name: '<string>'
})
};
fetch('https://api.kynasmith.dev/api/movespecs/{movespec_id}/fork', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"created_at": "2023-11-07T05:31:56Z",
"movespec_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"visibility": "private",
"archived_at": "2023-11-07T05:31:56Z",
"current_released_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"star_count": 0
}{
"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
Body
application/json
Response
Successful Response
Public MoveSpec resource returned to external API consumers.
Internal/first-party fields (organization_id, created_by,
updated_by, caller_starred) have been moved to
MoveSpecFirstPartyResource (#31).
caller_starred returns False for anonymous callers instead
of None (#73). It has been moved to the first-party variant.