Update Company Knowledge
PATCH
/v1/mobile/company-knowledge/{pack_id}
const url = 'https://api.vocapable.com/v1/mobile/company-knowledge/example';const options = { method: 'PATCH', headers: { 'Idempotency-Key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"expected_version":1,"changes":[{"source_index":1,"fact":{"label":"example","text":"example","source_url":"example"}}],"reviewed":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.vocapable.com/v1/mobile/company-knowledge/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --data '{ "expected_version": 1, "changes": [ { "source_index": 1, "fact": { "label": "example", "text": "example", "source_url": "example" } } ], "reviewed": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”pack_id
required
Pack Id
string
Header Parameters
Section titled “Header Parameters”Idempotency-Key
required
string
Unique key for this draft change. Retry with the same key and body to replay the saved result instead of repeating the change. Stored for 24 hours; a replay carries Idempotent-Replay: true.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
MobileKnowledgeUpdate
object
expected_version
required
Expected Version
integer
changes
required
reviewed
required
Reviewed
boolean
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
MobileCompanyKnowledge
object
id
required
Id
string
name
required
Name
string
version
required
Version
integer
sources
required
Sources
Array<object>
PackSourceOne distilled section of a pack, plus where it came from.
text is the artifact, not a summary of one: knowledge_pack_versions carries
sources and no separate body column, so these sections are the compiled pack.
Phrase them spoken-answer-ready - short declaratives an agent can say verbatim.
Example
{ "sources": [ { "kind": "pdf" } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}