Update prompts
curl --request PATCH \
--url https://wisepim.com/api/public/v1/prompts/{resource_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"prompt_type": "<string>",
"enrich_type": "<string>",
"prompt_text": "<string>",
"tone_of_voice": "<string>",
"custom_tone": "<string>",
"purpose": "<string>",
"industry": "<string>",
"point_of_view": "<string>",
"include_spec_table": true,
"title_max_length": 123,
"title_variants": 123,
"title_include_brand": true,
"target_size": "<string>",
"target_word_count": 123,
"faq_types": [
"<string>"
],
"faq_max_questions": 123,
"faq_use_web_research": true,
"target_attribute_codes": [
"<string>"
],
"share_with_project": true
}
'import requests
url = "https://wisepim.com/api/public/v1/prompts/{resource_id}"
payload = {
"title": "<string>",
"description": "<string>",
"prompt_type": "<string>",
"enrich_type": "<string>",
"prompt_text": "<string>",
"tone_of_voice": "<string>",
"custom_tone": "<string>",
"purpose": "<string>",
"industry": "<string>",
"point_of_view": "<string>",
"include_spec_table": True,
"title_max_length": 123,
"title_variants": 123,
"title_include_brand": True,
"target_size": "<string>",
"target_word_count": 123,
"faq_types": ["<string>"],
"faq_max_questions": 123,
"faq_use_web_research": True,
"target_attribute_codes": ["<string>"],
"share_with_project": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
prompt_type: '<string>',
enrich_type: '<string>',
prompt_text: '<string>',
tone_of_voice: '<string>',
custom_tone: '<string>',
purpose: '<string>',
industry: '<string>',
point_of_view: '<string>',
include_spec_table: true,
title_max_length: 123,
title_variants: 123,
title_include_brand: true,
target_size: '<string>',
target_word_count: 123,
faq_types: ['<string>'],
faq_max_questions: 123,
faq_use_web_research: true,
target_attribute_codes: ['<string>'],
share_with_project: true
})
};
fetch('https://wisepim.com/api/public/v1/prompts/{resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"title": "<string>",
"description": "<string>",
"prompt_type": "<string>",
"enrich_type": "<string>",
"prompt_text": "<string>",
"tone_of_voice": "<string>",
"custom_tone": "<string>",
"purpose": "<string>",
"industry": "<string>",
"point_of_view": "<string>",
"include_spec_table": true,
"title_max_length": 123,
"title_variants": 123,
"title_include_brand": true,
"target_size": "<string>",
"target_word_count": 123,
"faq_types": "<unknown>",
"faq_max_questions": 123,
"faq_use_web_research": true,
"target_attribute_codes": "<unknown>",
"share_with_project": true,
"id": 123
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>",
"detail": [
{}
]
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}Update prompts
PATCH /prompts/. Required scopes: prompts:write.
PATCH
/
api
/
public
/
v1
/
prompts
/
{resource_id}
Update prompts
curl --request PATCH \
--url https://wisepim.com/api/public/v1/prompts/{resource_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"prompt_type": "<string>",
"enrich_type": "<string>",
"prompt_text": "<string>",
"tone_of_voice": "<string>",
"custom_tone": "<string>",
"purpose": "<string>",
"industry": "<string>",
"point_of_view": "<string>",
"include_spec_table": true,
"title_max_length": 123,
"title_variants": 123,
"title_include_brand": true,
"target_size": "<string>",
"target_word_count": 123,
"faq_types": [
"<string>"
],
"faq_max_questions": 123,
"faq_use_web_research": true,
"target_attribute_codes": [
"<string>"
],
"share_with_project": true
}
'import requests
url = "https://wisepim.com/api/public/v1/prompts/{resource_id}"
payload = {
"title": "<string>",
"description": "<string>",
"prompt_type": "<string>",
"enrich_type": "<string>",
"prompt_text": "<string>",
"tone_of_voice": "<string>",
"custom_tone": "<string>",
"purpose": "<string>",
"industry": "<string>",
"point_of_view": "<string>",
"include_spec_table": True,
"title_max_length": 123,
"title_variants": 123,
"title_include_brand": True,
"target_size": "<string>",
"target_word_count": 123,
"faq_types": ["<string>"],
"faq_max_questions": 123,
"faq_use_web_research": True,
"target_attribute_codes": ["<string>"],
"share_with_project": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
prompt_type: '<string>',
enrich_type: '<string>',
prompt_text: '<string>',
tone_of_voice: '<string>',
custom_tone: '<string>',
purpose: '<string>',
industry: '<string>',
point_of_view: '<string>',
include_spec_table: true,
title_max_length: 123,
title_variants: 123,
title_include_brand: true,
target_size: '<string>',
target_word_count: 123,
faq_types: ['<string>'],
faq_max_questions: 123,
faq_use_web_research: true,
target_attribute_codes: ['<string>'],
share_with_project: true
})
};
fetch('https://wisepim.com/api/public/v1/prompts/{resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"title": "<string>",
"description": "<string>",
"prompt_type": "<string>",
"enrich_type": "<string>",
"prompt_text": "<string>",
"tone_of_voice": "<string>",
"custom_tone": "<string>",
"purpose": "<string>",
"industry": "<string>",
"point_of_view": "<string>",
"include_spec_table": true,
"title_max_length": 123,
"title_variants": 123,
"title_include_brand": true,
"target_size": "<string>",
"target_word_count": 123,
"faq_types": "<unknown>",
"faq_max_questions": 123,
"faq_use_web_research": true,
"target_attribute_codes": "<unknown>",
"share_with_project": true,
"id": 123
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>",
"detail": [
{}
]
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}Authorizations
Use a project API key from Settings > API Access. Send it as Authorization: Bearer wpk_.... See authentication and scopes for setup and permissions.
Headers
Body
application/json
Response
OK

