Upsert Prompt Template by External ID
Publish a prompt template by a customer-defined external ID. If the mapping already exists, PromptLayer creates a new version on the mapped prompt template. If the mapping does not exist, PromptLayer creates or updates the prompt template from the request body and attaches the mapping. This is the only external ID endpoint that usesDocumentation Index
Fetch the complete documentation index at: https://promptlayer-add-demo-projects.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
PUT. See External IDs for mapping rules and conflict behavior.Authorizations
Path Parameters
External ID source.
1 - 128External ID value. URL-encode any reserved path characters.
1 - 512Body
Template metadata, including prompt name, tags, folder, and workspace fields.
Version content and configuration.
Release labels to create or move to the newly created version.
Identifiers from other systems.
Response
Prompt template updated
The ID of the prompt template.
The name of the prompt template.
The ID of the created prompt version.
The version number of the prompt template.
- Completion Template
- Chat Template
External ID mappings attached to the prompt template.
Metadata associated with the prompt blueprint. Supports additional custom fields beyond the model field.

