Patch Instructions
Upsert and patch the authenticated user’s global instructions.
PATCH semantics: only fields present in the body change. If no row exists
for the user, one is created seeded from DEFAULT_INSTRUCTIONS and then
the patch is applied. updated_at is bumped on any write; created_at
is only set on insert. user_id is always the authenticated principal’s.
Authorizations
EDN API key presented as 'Bearer ' in the Authorization header. Create and manage keys from the Console.
Body
PATCH body: every field optional, only provided fields are applied.
custom_instructions length is bounded at the API layer; an over-long
value is rejected with 422 before any DB write.
Response
Successful Response
Console-facing global instructions.
Mirrors the nullable columns on user_instructions. A user with no
stored row is returned the defaults (all null) without a row being
created.
