Creates a new PromptTemplate.
HTTP request
POST https://firebasevertexai.googleapis.com/v1beta/{parent=projects/*/locations/*}/templates
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent resource where this PromptTemplate will be created. Format: projects/{project}/locations/{location} |
Query parameters
| Parameters | |
|---|---|
validateOnly |
Optional. If set to true, the request will be validated but not executed. |
promptTemplateId |
Optional. The unique ID to use for the PromptTemplate, which will become the final component of the PromptTemplate's resource name. It can contain only lowercase letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and a 63-character maximum. If not provided, a system-generated ID will be used. |
Request body
The request body contains an instance of PromptTemplate.
Response body
If successful, the response body contains a newly created instance of PromptTemplate.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the OAuth 2.0 Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
firebasevertexai.promptTemplates.create
For more information, see the IAM documentation.