---
title: "Create or Update a template with full configuration (v2)"
method: POST
path: "/api/prompts/v2/{name}"
tags: ["prompt-resource"]
---

# Create or Update a template with full configuration (v2)

`POST /api/prompts/v2/{name}`

## Path parameters

- `name` string, required

## Request body

- MessageTemplate
  - `createTime` integer
  - `createdBy` string
  - `description` string
  - `integrations` string[]
  - `name` string
  - `ownerApp` string
  - `responseFormat` string
  - `stopWords` string[]
  - `tags` Tag[]
    - `key` string
    - `type` string
    - `value` string
  - `temperature` number, double
  - `template` string
  - `topP` number, double
  - `updateTime` integer
  - `updatedBy` string
  - `variables` string[]
  - `version` integer

## Response `200`

OK

---

[API](https://skmtc.dev/orkescloud/apis/orkes-conductor-api-server.md) · [All operations](https://skmtc.dev/orkescloud/apis/orkes-conductor-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/orkescloud/orkes-conductor-api-server/revisions/6ebf0c14ac41/schema)
