Script

Validate script

Run every script rule and return the findings. Writes nothing, and unlike the other script endpoints it works on an active project — that is the one whose problems are reaching respondents right now.

With no body, validates the project's stored script in its real delivery context (answer zone, poll-ness, score buckets, post channel). valid: false then means the project will refuse to open or repost until the findings are fixed or accepted.

With a blocks array — the same body PUT /script takes — validates that candidate script instead, so a script can be checked before it is committed.

warnings holds only the ones not already accepted for this project; previously accepted ones are reported under accepted. A finding carrying blocks_write: true is one the write endpoints reject with a 400 even though the delivery gate would let an admin accept it.

post/v1/communities/{communityId}/projects/{projectId}/script/validate

Request

  • Base URL: https://api.subo.ai
  • URL: https://api.subo.ai/v1/communities/{communityId}/projects/{projectId}/script/validate
  • Auth: API key in header X-API-Key

Path parameters

communityIdstring required

Community ID (Discord guild snowflake, serialized as string)

projectIdstring required

Project ID

Request body

Response

Findings for the script

Changes

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