Prompt Payloads
Update a Prompt Payload
Updates an existing sample payload's variables and/or optional name. Only editors can update.
put/v1/prompts/{id}/payloads/{payloadID}
Path parameters
idstring uuid required
Unique prompt UUID.
payloadIDstring uuid required
Unique payload UUID.
Request body
Example request
{
"name": "Admin Sample",
"variables": {
"user": "Alice",
"role": "Editor"
}
}Response
Prompt payload updated successfully
Example response
{
"payload": {
"variables": {
"user": "Arpit",
"role": "Admin"
}
}
}Changes
Changed in 2 of the 18 revisions of this API.2
- ○
the endpoint scheme security
ApiKeyAuthwas removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
- ○