Creates a new snapshot.
POSThttp://127.0.0.1:14265/api/core/v2/control/snapshot/create
Creates a new snapshot.
Request
- application/json
Body
index integerrequired
The index of the snapshot.
Responses
- 200
- 400
- 403
- 404
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- Full Snapshot
- Delta Snapshot
Schema
index integerrequired
The index of the snapshot.
filePath stringrequired
The file path of the snapshot file.
{
"index": 0,
"filePath": "string"
}
{
"fullIndex": 1560,
"fullFilePath": "snapshots/mainnet/full_snapshot_1560.bin"
}
{
"deltaIndex": 1000,
"deltaFilePath": "snapshots/mainnet/delta_snapshot_1000.bin"
}
Unsuccessful operation: indicates that the provided data is invalid.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 400,
"message": "invalid data provided"
}
}
Unsuccessful operation: indicates that the endpoint is not available for public use.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 403,
"message": "not available for public use"
}
}
Unsuccessful operation: indicates that the requested data was not found.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 404,
"message": "could not find data"
}
}
Unsuccessful operation: indicates that an unexpected, internal server error happened which prevented the node from fulfilling the request.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 500,
"message": "internal server error"
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'http://127.0.0.1:14265/api/core/v2/control/snapshot/create' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"index": 0
}'
ResponseClear