playground_prompts

Update Playground Prompt

Changed on

Update a playground prompt's template or settings.

Args: body: Fields to set on the prompt. prompt: Prompt resolved from the URL, verified to belong to the URL playground. ctx: Async request context supplying the read session and current user. principal: Caller the base template's permissions are resolved for.

Returns: The updated prompt.

patch/projects/{project_id}/playgrounds/{playground_id}/prompts/{prompt_id}

Request

  • Base URL
    https://api.galileo.ai
  • URL
    https://api.galileo.ai/projects/{project_id}/playgrounds/{playground_id}/prompts/{prompt_id}
  • Auth
    • API key in header Splunk-AO-API-Key
    • or API key in header Galileo-API-Key
    • or OAuth 2
      Password
      Token URL: https://api.galileo.ai/login
    • or HTTP basic

Path parameters

project_idstring uuid4 required
prompt_idstring uuid4 required
playground_idstring uuid4 required

Request body

base_prompt_template_version_idstring uuid4 nullable
templatestring nullable
rawboolean nullable

Response

Successful Response

idstring uuid4 required
templatestring nullable

Overrides the base prompt template if set.

rawboolean required
positioninteger required
run_idstring uuid4 nullable

Changes

    • breaking

      removed the enum value vegas_gateway of the request property ////

    • warning

      added the new read_all_logs enum value to the ///// response property for the response status

    • warning

      added the new read_filtered_logs enum value to the ///// response property for the response status

    • info

      added the new optional request property ////