English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/knowledge/{knowledgeId}Change the name and description of a knowledge. Both are replaced, so a description that is left out becomes empty.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizknowledge:write| Parameter | Type | Required | Description |
|---|---|---|---|
knowledgeId | string | Yes | ID of the knowledge, the _id from Get Knowledge. |
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the knowledge, up to 100 characters. |
description | string | No | What the knowledge is about, up to 500 characters. Empty when left out. |
curl -X PUT "https://api.repliz.com/public/knowledge/680affa5ce12f2f72916f67e" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)" \
-H "Content-Type: application/json" \
-d '{
"name": "Product catalog 2026",
"description": "Prices, stock and shipping"
}'import axios from 'axios';
const knowledgeId = '680affa5ce12f2f72916f67e';
const response = await axios.put(
`https://api.repliz.com/public/knowledge/${knowledgeId}`,
{
name: 'Product catalog 2026',
description: 'Prices, stock and shipping',
},
{
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
},
);
console.log(response.status);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const knowledgeId = '680affa5ce12f2f72916f67e';
const response = await fetch(`https://api.repliz.com/public/knowledge/${knowledgeId}`, {
method: 'PUT',
headers: {
Authorization: `Basic ${credentials}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Product catalog 2026',
description: 'Prices, stock and shipping',
}),
});
console.log(response.status);// No content returned on success{
"code": 404,
"message": "knowledge not found"
}{
"code": 401,
"message": "unauthorized"
}