Set the operator's principles
const url = 'http://localhost:11044/api/v1/admin/principles';const options = { method: 'PUT', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>', 'Content-Type': 'application/json'}, body: '{"content":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:11044/api/v1/admin/principles \ --header 'Content-Type: application/json' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>' \ --data '{ "content": "example" }'Replaces the shipped default for this appliance. Plain text/markdown; coding agents receive it verbatim in their authoring brief.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”The principles as plain text or markdown in content, saved as the operator’s file in place of the shipped default and handed verbatim to coding agents in their authoring brief. Blank content is a 400: DELETE returns to the default
The operator’s architectural principles for PUT /admin/principles, replacing the shipped default for the whole appliance
object
The principles as plain text or markdown, stored as written and handed to coding agents verbatim in their authoring brief. Must not be blank; DELETE /admin/principles returns to the shipped default
Example generated
{ "content": "example"}Responses
Section titled “Responses”Saved
object
Blank content — use DELETE to return to the shipped default
A refused write of the operator’s principles
object
Why the write was refused, written to be shown
Always error

