projects_edit_ui
Merge updates into a draft’s UI options without changing nodes or edges.
Effect: This call saves data or changes configuration. Review the behavior below before using it.
Inputs
project_id
string
Required
ID returned by projects_list; use a project in the active organization.
updates
object
Required
Nonempty object of supported interface fields. See supported fields below.
publish
boolean
Optional
Default false. Set true only to publish the resulting draft.
Supported interface fields
Use projects_get(version="draft") to inspect current settings before editing. Common fields include:
name, description
string
Interface title and description.
welcome_message, input_placeholder_message, error_message
string
Customer-facing messages.
theme, font, color, bg_color, font_color
string
Appearance. Preserve an existing valid value when you do not intend to change it.
suggested_messages
array
Suggested opening messages; retain the existing shape returned by the project.
required_inputs
array of strings
IDs of inputs the interface requires.
allowed_origin_urls
array of strings
Website origins permitted to embed the interface.
website_chatbot_config, sso_access
object
Chatbot placement or access configuration. Read the current object before changing nested values.
Unknown keys and node-derived fields (flow_id, inputs, outputs, and default-name maps) are rejected. Passwords, API credentials, and Microsoft Teams credentials must be managed in the StackAI interface.
Example
These are MCP tool arguments, not an HTTP request body. Replace bracketed IDs with values returned from your account.
Result
Abbreviated result example; unshown fields are omitted for clarity.
Behavior
Read current UI options first and use canonical field names.
Unknown keys and node-derived fields such as inputs, outputs and flow_id are rejected. publish defaults to false; true attempts publication.
Inspect the returned merged ui_options and publication result.
Troubleshooting
Remove unknown or node-derived fields from updates. Manage passwords and integration credentials in the StackAI interface. If publish_error is present, inspect the saved draft before repeating the edit.
Related resources
Was this helpful?

