Reference
Publish Prompt Template (Deprecated)
POST
/
rest
/
publish-prompt-template
Publish Prompt Template allows you to programmatically create a new version of a prompt. This endpoint works with the deprecated prompt template format. This was meant to be used alongside promptlayer_client.prompts.get
. However, this function is deprecated. Use the promptlayer_client.templates.publish
endpoint instead.
Body
application/json
Your PromptLayer API Key
Prompt name has to be less than 128 characters and can only contain letters, numbers, and underscores. If a prompt exists with this name it will be pushed into an older version
Chat Prompt Template
Array of string tags for a template
Commit message for the prompt version
Was this page helpful?