Script

Update block

Update a single main-section block's content, options, constraints, action config, or position. Project must be inactive. This endpoint does not update outro blocks; use PUT /script with section=outro + id for outro content/pause updates.

put/v1/communities/{communityId}/projects/{projectId}/script/blocks/{blockId}

Request

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

Path parameters

communityIdstring required

Community ID (Discord guild snowflake, serialized as string)

projectIdstring required

Project ID

blockIdstring required

Block ID

Request body

namestring

The block's variable token, e.g. belonging -> [Belonging]. Renaming does not rewrite existing references.

section'main' | 'intro' | 'outro' nullable
type'single_punch' | 'multi_punch' | 'open_text' | 'open_numeric' | 'rating' | 'opinion_scale' | 'nps' | 'ranking' | 'content_block' | 'action_block' | 'calculated_block'
answer_style'full_text' | 'emoji_only' | 'select_menu' | 'buttons' nullable
image_urlstring uri nullable
thumbnail_urlstring uri nullable
promptstring
mininteger nullable
maxinteger nullable
requiredboolean nullable
preconditionstring nullable
action_kind'give_xp' | 'give_achievement' | 'give_role' nullable
positioninteger nullable

Response

Updated script

Changes

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