---
title: "Set the prompt template for a workspace"
method: PUT
path: "/workspaces/{workspaceId}/prompt-template"
tags: ["Workspaces"]
---

# Set the prompt template for a workspace

`PUT /workspaces/{workspaceId}/prompt-template`

## Path parameters

- `workspaceId` string, required

## Request body

- union
  - AddPromptTemplateToWorkspaceRequest
    - `botName` string, required
    - `instructions` string, required
    - `examples` PromptExample[], required
      - `question` string
      - `answer` string
  - Error
    - `error` boolean
    - `message` string[]

## Response `200`

response

- union
  - AddPromptTemplateToWorkspaceResponse
    - `workspaceId` string
    - `botName` string
    - `instructions` string
    - `examples` PromptExample[]
      - `question` string
      - `answer` string
  - Error
    - `error` boolean
    - `message` string[]

---

[API](https://skmtc.net/aws-samples/apis/gaia-rest-api.md) · [All operations](https://skmtc.net/aws-samples/apis/gaia-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws-samples/gaia-rest-api/versions/c61f71119116/schema)
