rules

Create or update a Story Rule

Reusing an existing name overwrites that rule instead of creating a duplicate.

post/rules

Request

  • Base URL: https://aistoryhub.co/api/v1
  • URL: https://aistoryhub.co/api/v1/rules
  • Auth: HTTP bearer

Request body

namestring required

Reusing an existing name overwrites it.

instructionsstring required
special_instructionsstring
contextstring
descriptionstring
content_rating'general' | 'adult'

Response

The created or updated rule.

idstring uuid
namestring
instructionsstring
special_instructionsstring nullable
contextstring nullable
descriptionstring nullable
content_rating'general' | 'adult'
created_atstring date-time nullable
updated_atstring date-time nullable

Changes

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