Get prompt by id
Get prompt by id; when mask_id or environment is provided, requestedVersion is populated with the resolved version. mask_id and environment are mutually exclusive.
Path parameters
Query parameters
Optional mask version id; when set, requestedVersion is the mask row for that id
Optional environment name; when set, requestedVersion is the version mapped to that environment for the prompt
Response
Prompt resource
Changes
Changed in 6 of the 58 revisions of this API.1618
- ○
added the optional property
latest_version/environmentto the response with the200statusresponse-optional-property-added
- ○
added the optional property
requested_version/environmentto the response with the200statusresponse-optional-property-added
- ○
- ●
removed the optional property
latest_version/environmentfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
requested_version/environmentfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
latest_version/environmentsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
requested_version/environmentsto the response with the200statusresponse-optional-property-added
- ●
- ○
added the optional property
latest_version/version_numberto the response with the200statusresponse-optional-property-added
- ○
added the optional property
requested_version/version_numberto the response with the200statusresponse-optional-property-added
- ○
- ○
added the new optional
queryrequest parameterenvironmentnew-optional-request-parameter
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
added the optional property
latest_version/environmentto the response with the200statusresponse-optional-property-added
- ○
added the optional property
requested_version/environmentto the response with the200statusresponse-optional-property-added
- ○
- ●
removed the optional property
codefrom the response with the404statusresponse-optional-property-removed
- ●
removed the optional property
detailsfrom the response with the404statusresponse-optional-property-removed
- ●
removed the optional property
messagefrom the response with the404statusresponse-optional-property-removed
- ○
added the new optional
queryrequest parametermask_idnew-optional-request-parameter
- ○
added the optional property
errorsto the response with the404statusresponse-optional-property-added
- ○
added the optional property
latest_version/version_typeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
requested_version/version_typeto the response with the200statusresponse-optional-property-added
- ●
- ●
deleted the
queryrequest parameterenvironmentrequest-parameter-removed
- ●
deleted the
queryrequest parametermask_idrequest-parameter-removed
- ●
removed the optional property
errorsfrom the response with the404statusresponse-optional-property-removed
- ●
removed the optional property
latest_version/environmentfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
latest_version/environmentsfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
latest_version/version_numberfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
latest_version/version_typefrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
requested_version/environmentfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
requested_version/environmentsfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
requested_version/version_numberfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
requested_version/version_typefrom the response with the200statusresponse-optional-property-removed
- ○
removed the non-success response with the status
400response-non-success-status-removed
- ○
added the optional property
codeto the response with the404statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the404statusresponse-optional-property-added
- ○
added the optional property
messageto the response with the404statusresponse-optional-property-added
This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●