Creates a new snapshot.
POST/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
code stringrequired
The application error code.
message stringrequired
The error reason.
{
"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
code stringrequired
The application error code.
message stringrequired
The error reason.
{
"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
code stringrequired
The application error code.
message stringrequired
The error reason.
{
"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
code stringrequired
The application error code.
message stringrequired
The error reason.
{
"error": {
"code": 500,
"message": "internal server error"
}
}
Loading...