Numscript Library
Save a numscript
Changed onAppends an immutable version to a ledger's numscript library. The version field must be an explicit full semver (e.g. "1.0.0"); it creates a new version and fails if that version already exists. The per-name latest is always the greatest stored semver.
put/v3/{ledgerName}/numscripts/{name}
Request
- Base URLhttp://localhost:9000
- URLhttp://localhost:9000/v3/{ledgerName}/numscripts/{name}
- Auth
- HTTP bearer
- or none
Path parameters
ledgerNamestring required
Name of the ledger
namestring required
Name of the numscript, URL-encoded as one path segment. Decoded exactly once.
Request body
Example request
{
"version": "1.0.0"
}Response
Numscript saved successfully
Example response
{
"data": {
"version": "1.0.0"
}
}Changes
- info
api operation id
saveNumscriptremoved and replaced withv3SaveNumscript
- info
- info
the endpoint scheme security
BearerAuthwas added to the API - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info