Skip to main content
PUT
/
api
/
v1
/
chat
/
gemini_prompts
/
{prompt_id}
Update Gemini Prompt
curl --request PUT \
  --url http://localhost:8000/api/v1/chat/gemini_prompts/{prompt_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "type": "negative_keyword_recommendations"
}
'
{
  "type": "negative_keyword_recommendations",
  "prompt": "<string>",
  "id": 123,
  "date_added": "2023-11-07T05:31:56Z",
  "date_updated": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

prompt_id
integer
required

Body

application/json

The schema for updating a Gemini prompt.

prompt
string
required
type
enum<string> | null

The types of prompts for the Gemini API.

Available options:
negative_keyword_recommendations,
negative_keyword_shopping_pmax_recommendations,
keyword_pause_recommendations,
double_check_pause_keywords_recommendation,
keyword_pause_context_validation,
headline_recommendations,
description_recommendations

Response

Successful Response

The schema for a Gemini prompt.

type
enum<string>
required

The types of prompts for the Gemini API.

Available options:
negative_keyword_recommendations,
negative_keyword_shopping_pmax_recommendations,
keyword_pause_recommendations,
double_check_pause_keywords_recommendation,
keyword_pause_context_validation,
headline_recommendations,
description_recommendations
prompt
string
required
id
integer
required
date_added
string<date-time>
required
date_updated
string<date-time>
required