POST
/
apps
/
{appId}
/
prompts
/
{externalId}
/
revisions
/
{revisionId}
/
validate
curl --request POST \
  --url https://api-v2.autoblocks.ai/apps/{appId}/prompts/{externalId}/revisions/{revisionId}/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "majorVersion": 1
}'
{
  "id": "<string>",
  "version": "<string>",
  "revisionId": "<string>",
  "templates": [
    {
      "id": "<string>",
      "template": "<string>"
    }
  ],
  "tools": [
    {}
  ],
  "toolsParams": [
    {
      "name": "<string>",
      "params": [
        "<string>"
      ]
    }
  ],
  "params": {
    "params": {}
  }
}

Authorizations

Authorization
string
header
required

API Key created in the Autoblocks Webapp

Path Parameters

appId
string
required
externalId
string
required
revisionId
string
required

Body

application/json

Validate the compatibility of a prompt

Response

200 - application/json

The prompt revision is compatible

The response is of type object.