Skip to main content

Create a prompt fragment

POST 

/api/v1/prompt-fragments/create

Creates a reusable template block in the caller's project. The fragment ID must be unique within that project. Profiles that include the fragment share the stored text, so a later edit affects every referencing profile.

Request​

Responses​

Fragment created; the stored record is echoed back

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

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