Templates

Publish template version

Create a new immutable version of a template with prompt, schema, and/or data validation

post/v4/templates/{templateId}/versions

Request

  • Base URL: https://api.kadoa.com
  • URL: https://api.kadoa.com/v4/templates/{templateId}/versions
  • Auth: API key in header x-api-key

Path parameters

templateIdstring uuid required

Template ID

Request body

promptstring nullable

Prompt; omit to inherit, null to clear

schemaIdstring uuid nullable

Schema ID; omit to inherit, null to clear (mutually exclusive with schemaFields)

schemaEntitystring

Entity name for supplied inline schema fields

schemaValidationRulesobject nullable

Rules; omit to inherit rules for fields retained by a replacement schema, null to clear, {} to manage an empty ruleset

recordLimitinteger nullable

Output record limit; omit to inherit, null for template-managed unlimited

recordLimitManagedfalse

False clears template ownership of the output record limit

Response

201

errorfalse required

Error flag (always false on success)

successtrue required

Success flag

Changes

No recorded changes to this operation across all 1 revision of this API.