Skip to main content

Update a prompt fragment

POST 

/api/v1/prompt-fragments/update

Partially updates a fragment via updateMask, using the mask semantics of profile update.

The change reaches every profile that includes this fragment on its next turn and increments the project-wide fragment-set version. There is no per-profile rollout.

Request​

Responses​

Fragment updated; the new stored record is echoed back

Document ID: DOC-MA-profiles-prompts-api-updatePromptFragment. Section identities and revisions.

SectionStable reference
OverviewDOC-MA-profiles-prompts-api-updatePromptFragment#overview
RequestDOC-MA-profiles-prompts-api-updatePromptFragment#request
ResponsesDOC-MA-profiles-prompts-api-updatePromptFragment#responses