Upload and persist a Knowledge library cover image

POST/v1/knowledge/{libraryId}/cover

Normalizes the image to an optimized WebP asset in the deployment's durable artifact store and atomically promotes it to the library's first-class cover field.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
libraryIdpathstringYesKnowledge library ID
Query parameters
None.

Body schema

Content type: multipart/form-data · Required

FieldTypeRequiredDescription
filestringYesSupported image file (maximum 15 MB).
sourceupload | computerNo
positionXnumberNo
positionYnumberNo
zoomnumberNo
computerIdstringNo
computerPathstringNo

What the API returns

Each response code below includes the documented payload shape for the ACP API.

201Durable cover image saved and linked to the libraryapplication/json
FieldTypeRequiredDescription
libraryobjectYes
library.idstringYesUnique identifier.
library.namestringYesHuman-readable name.
library.descriptionstringYesHuman-readable description.
library.homeDocumentIdstringYes
library.creatorIdstringNo
library.creatorUserIdstringNo
library.creatorNamestringNo
library.creatorEmailstringNo
library.creatorAvatarUrlstringNo
library.ownerIdstringNo
library.ownerUserIdstringNo
library.ownerNamestringNo
library.ownerEmailstringNo
library.ownerAvatarUrlstringNo
library.currentVersionIdstringYes
library.currentVersionNumberintegerYes
library.publishedVersionIdstringNo
library.coverobjectYes
library.cover.schemaVersioncomputer_agents_knowledge_cover_v1Yes
library.cover.typegradientYes
library.cover.presetblueYes
library.metadataobjectNoFree-form metadata object.
library.permissionSetobjectNo
library.documentsobject[]No
library.documents[].idstringYesUnique identifier.
library.documents[].libraryIdstringYes
library.documents[].revisionIdstringYes
library.documents[].currentRevisionIdstringNo
library.documents[].parentDocumentIdstringNo
library.documents[].slugstringNo
library.documents[].sortOrderintegerNo
library.documents[].archivedbooleanNo
library.documents[].titlestringYesDisplay title.
library.documents[].namestringNoHuman-readable name.
library.documents[].summarystringNo
library.documents[].descriptionstringNoHuman-readable description.
library.documents[].markdownstringYes
library.documents[].contentstringNoRaw text content.
library.documents[].contentHashstringYes
library.documents[].provenanceobjectNo
library.documents[].createdByUserIdstringNo
library.documents[].revisionCreatedByUserIdstringNo
library.documents[].createdAtstringYesISO 8601 timestamp.
library.documents[].revisionCreatedAtstringNo
library.documents[].updatedAtstringYesISO 8601 timestamp.
library.versionsobject[]No
library.versions[].idstringYesUnique identifier.
library.versions[].numberintegerNo
library.versions[].versionNumberintegerYes
library.versions[].namestringNoHuman-readable name.
library.versions[].descriptionstringNoHuman-readable description.
library.versions[].statussaved | publishedYesCurrent lifecycle status.
library.versions[].fingerprintstringYes
library.versions[].publishedAtstringNo
library.versions[].createdAtstringYesISO 8601 timestamp.
library.versions[].updatedAtstringYesISO 8601 timestamp.
library.createdAtstringYesISO 8601 timestamp.
library.updatedAtstringYesISO 8601 timestamp.
400Missing or invalid image upload
None.
413Image exceeds the 15 MB upload limit
None.
Upload and persist a Knowledge library cover image
Loading...
Response 201
Loading...
See the ACP quickstart and SDK flow