code

Publish a tool's draft

Make your team's draft of a tool's code live, as the tool's newest version.

  • Business accounts only, with tools:build. Pomerado doesn't review the draft's code, so only an Owner or Admin signed in to the Dashboard publishes it, never an API key or an agent.
  • Send the digest of the draft you saw. It publishes once a run of the draft passed on the live version, for free, and the draft is then gone.
  • The draft's files replace the live version's, a repair's included, with the inputs and outputs its run read. A public tool's draft goes live only when it keeps every input callers send and holds no team member's email address or name, or a credential.
post/v1/code/{id}/draft/publish

Request

  • Base URL: https://api.pomerado.ai
  • URL: https://api.pomerado.ai/v1/code/{id}/draft/publish
  • Auth: HTTP bearer

Path parameters

idstring required
Example:tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190

a tool ID: tool_ and 32 lowercase hex digits

Request body

digeststring required

The draft's digest, as code.get answered it

Response

The tool's code, with the draft live

input_schemaobject required

What the live version's input takes, as JSON Schema

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.