curl -X PATCH https://api.chessplay.io/api/v1/batches/1/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Updated Batch"}'
import requests
headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"}
data = {"name": "Updated Batch"}
response = requests.patch(
"https://api.chessplay.io/api/v1/batches/1/",
headers=headers,
json=data
)
const response = await fetch('https://api.chessplay.io/api/v1/batches/1/', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({ name: 'Updated Batch' })
});
{
"id": 1,
"name": "Updated Batch",
"coach": {...}
}
Batches
Update Batch
Update batch information
PATCH
/
api
/
v1
/
batches
/
{id}
/
curl -X PATCH https://api.chessplay.io/api/v1/batches/1/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Updated Batch"}'
import requests
headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"}
data = {"name": "Updated Batch"}
response = requests.patch(
"https://api.chessplay.io/api/v1/batches/1/",
headers=headers,
json=data
)
const response = await fetch('https://api.chessplay.io/api/v1/batches/1/', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({ name: 'Updated Batch' })
});
{
"id": 1,
"name": "Updated Batch",
"coach": {...}
}
Path Parameters
integer
required
Batch ID
Body Parameters
string
Batch name
integer
Coach ID
curl -X PATCH https://api.chessplay.io/api/v1/batches/1/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Updated Batch"}'
import requests
headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"}
data = {"name": "Updated Batch"}
response = requests.patch(
"https://api.chessplay.io/api/v1/batches/1/",
headers=headers,
json=data
)
const response = await fetch('https://api.chessplay.io/api/v1/batches/1/', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({ name: 'Updated Batch' })
});
{
"id": 1,
"name": "Updated Batch",
"coach": {...}
}
Admin only
Was this page helpful?
⌘I

