code
Restore an earlier version of a tool
Make an earlier version of a tool your team built live again, as the tool's newest version.
- Business accounts only, with tools:build. The version's code, inputs and outputs go live at once, for free. Restoring the live version, or the version it restored, changes nothing.
- A version can be restored when code.get lists it as restorable: not one published before Pomerado kept a record of each version, or one taken down.
- A public tool restores only a version Pomerado checked that keeps every input its callers send; it may make a required input optional. Only an Owner or Admin signed in to the Dashboard restores a version Pomerado didn't check, never an API key or an agent.
post/v1/code/{id}/versions/{number}/restore
Request
- Base URL: https://api.pomerado.ai
- URL: https://api.pomerado.ai/v1/code/{id}/versions/{number}/restore
- Auth: HTTP bearer
Path parameters
idstring required
Example:tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
a tool ID: tool_ and 32 lowercase hex digits
numberstring required
The version's number, as code.get lists it
Response
The tool's code, with the restored version live
Example response
{
"integration": {
"id": "int_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190",
"tools": [
{
"id": "tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"
}
]
},
"tool": {
"id": "tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.