Skip to content
vVectorly

Vectorly

AboutContactDocs

Jump to

POST

Validate routine

/routines/validate_routine_json

Validate a routine JSON payload structure. Useful for testing routine definitions before creating or updating routines.

Request

URL

POST /routines/validate_routine_json

Request body format

The request body can be provided in two formats:

Format 1: Raw Routine JSON object

JSON

JSON

Format 2: Wrapped with "routine_json" key

JSON

JSON

Format 2 (with JSON string):

JSON

JSON

Body fields

routine_json (optional)

If provided, the routine JSON object or string should be wrapped in this key. If not provided, the entire request body is treated as the routine JSON.

Routine object fields

The routine JSON must conform to the Routine data model schema. See Data Models & Schemas documentation for details.

Response

Success response (200) example

JSON

JSON

Error response (400) example

JSON

JSON

Response fields

valid (boolean)

Whether the routine JSON is valid. Always true for successful responses.

routine (object)

The validated routine object as a JSON object.

detail (string, error responses only)

Error message describing why validation failed.

Code examples

bash

bash

v

Vectorly

Copyright © 2025 Vectorly

This site is protected by reCAPTCHA.

Google Privacy Policy and Terms of Service apply.

Website

v

Vectorly

Copyright © 2025 Vectorly

This site is protected by reCAPTCHA.

Google Privacy Policy and Terms of Service apply.

Website