curl --request PUT \
--url https://api.example.com/prompts/{prompt_id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"category_name": "<string>",
"content": "<string>",
"tags": [
"<string>"
]
}
'{
"id": "<string>",
"email": "<string>",
"prompt_type": "<string>",
"title": "<string>",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"category_name": "<string>",
"icon": "<string>",
"tags": [
"<string>"
]
}Update an existing prompt.
curl --request PUT \
--url https://api.example.com/prompts/{prompt_id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"category_name": "<string>",
"content": "<string>",
"tags": [
"<string>"
]
}
'{
"id": "<string>",
"email": "<string>",
"prompt_type": "<string>",
"title": "<string>",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"category_name": "<string>",
"icon": "<string>",
"tags": [
"<string>"
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Was this page helpful?