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.
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
Reuse this key for retries of the same write. Scoped to this API key; retained until key deletion. Different requests with the same key return 409.
1 - 128^[!-~]+$Path Parameters
Body
255Brief description of what this prompt does
1000005010010000050255505050Max character length for generated titles (titles enrichment only).
How many distinct title variants to generate per product (titles enrichment only).
Include the brand name in generated titles when known (titles enrichment only).
Length preset for description / short_description enrichment.
20Explicit word target, used when target_size is 'custom'.
FAQ type keys (products/services/faq_types.py); empty uses the industry defaults.
Maximum FAQ items per product, 1 to 20 (faq enrichment only).
Ground FAQ answers in the latest web research (faq enrichment only).
Attribute codes a product_attributes prompt fills; empty fills every AI-enrichable attribute.
When true, other members of the prompt's project can see and use this prompt.
Response
OK
255Brief description of what this prompt does
5010050255505050Max character length for generated titles (titles enrichment only).
How many distinct title variants to generate per product (titles enrichment only).
Include the brand name in generated titles when known (titles enrichment only).
Length preset for description / short_description enrichment.
20Explicit word target, used when target_size is 'custom'.
FAQ type keys (products/services/faq_types.py); empty uses the industry defaults.
Maximum FAQ items per product, 1 to 20 (faq enrichment only).
Ground FAQ answers in the latest web research (faq enrichment only).
Attribute codes a product_attributes prompt fills; empty fills every AI-enrichable attribute.
When true, other members of the prompt's project can see and use this prompt.

