prompts

Create Prompt

post/v1/prompts/create

Request body

contentstring
context_endpointstring nullable

Response

Successful Response

idstring uuid required
user_idstring uuid required
contentstring
context_endpointstring nullable

Changes

Changed in 4 of the 31 revisions of this API.8111

  • 63991d99e2e1614See the full diff
    • response property collect_fields list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property context_endpoint list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • the prompt_template response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • removed the required property prompt_template/id from the response with the 200 status

      response-required-property-removed

    • removed the required property prompt_template/required_context_keys from the response with the 200 status

      response-required-property-removed

    • removed the required property prompt_template/user_id from the response with the 200 status

      response-required-property-removed

    • removed the optional property prompt_template/label from the response with the 200 status

      response-optional-property-removed

    • added subschema #3 to the prompt_template request property anyOf list

      request-property-any-of-added

    • request property collect_fields list-of-types was widened by adding types null to media type application/json

      request-property-list-of-types-widened

    • request property context_endpoint list-of-types was widened by adding types null to media type application/json

      request-property-list-of-types-widened

    • added PromptTemplate subschema #2 to the prompt_template response property anyOf list for the response status 200

      response-property-any-of-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • eb14a21c478e15See the full diff
    • the response property content became optional for the status 200

      response-property-became-optional

    • added the new optional request property prompt_template

      new-optional-request-property

    • the request property content became optional

      request-property-became-optional

    • the content request property default value was added

      request-property-default-value-added

    • added the optional property prompt_template to the response with the 200 status

      response-optional-property-added

    • the content response's property default value was added for the status 200

      response-property-default-value-added

    • removed the enum value field_type_address of the request property collect_fields/items/field_type

      request-property-enum-value-removed

    • removed the field_type_address enum value from the collect_fields/items/field_type response property for the response status 200

      response-property-enum-value-removed

    • endpoint added

      endpoint-added