curl --request PUT \
--url https://realtime-api.voiceflow.com/v1alpha1/public/knowledge-base/document/{documentID} \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '
{
"data": {
"type": "url",
"url": "<string>",
"name": "<string>",
"refreshRate": "daily",
"folderID": "<string>",
"documentMetadata": [
{
"key": "<string>",
"values": [
"<string>"
]
}
],
"metadata": {},
"projectEnvironmentIDOrAlias": "<string>"
}
}
'{
"data": {
"documentID": "<string>",
"data": {
"type": "url",
"name": "<string>",
"url": "<string>",
"refreshRate": "daily",
"lastSuccessUpdate": "<string>",
"accessTokenID": 123,
"integrationExternalID": "<string>",
"source": "zendesk"
},
"updatedAt": "2023-11-07T05:31:56Z",
"status": {
"type": "ERROR",
"data": "<unknown>"
}
}
}Replaces the target document with the provided content. Supports both application/json and multipart/form-data content types.
curl --request PUT \
--url https://realtime-api.voiceflow.com/v1alpha1/public/knowledge-base/document/{documentID} \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '
{
"data": {
"type": "url",
"url": "<string>",
"name": "<string>",
"refreshRate": "daily",
"folderID": "<string>",
"documentMetadata": [
{
"key": "<string>",
"values": [
"<string>"
]
}
],
"metadata": {},
"projectEnvironmentIDOrAlias": "<string>"
}
}
'{
"data": {
"documentID": "<string>",
"data": {
"type": "url",
"name": "<string>",
"url": "<string>",
"refreshRate": "daily",
"lastSuccessUpdate": "<string>",
"accessTokenID": 123,
"integrationExternalID": "<string>",
"source": "zendesk"
},
"updatedAt": "2023-11-07T05:31:56Z",
"status": {
"type": "ERROR",
"data": "<unknown>"
}
}
}Documentation Index
Fetch the complete documentation index at: https://docs.voiceflow.com/llms.txt
Use this file to discover all available pages before exploring further.
Voiceflow API key
ID of the document to target.
Determines how granularly each document is broken up. Range available is 500-1500 tokens, default is 1000. Smaller chunk size means narrower context, faster response, less tokens consumed, and greater risk of less accurate answers. Max chunk size affects the total amount of chunks parsed from a document - i.e., larger chunks means less chunks retrieved.
Hide child attributes
url daily, weekly, monthly, never An array of document metadata fields.
💡 Tip: This metadata can be used in agent KB metadata filter conditions. Learn more about metadata filtering.
The alias of the environment to target (ie. main). You can find this in the environments page of your agent.
💡 Tip: Learn more about Environments.
The target document was successfully replaced.
Hide child attributes
Hide child attributes
url daily, weekly, monthly, never zendesk, shopify Was this page helpful?