Skip to main content
PATCH
/
api
/
kb
/
assets
/
{spaceId}
/
{assetId}
Update an asset
curl --request PATCH \
  --url https://{customer-tenant}.nuwacom.ai/api/kb/assets/{spaceId}/{assetId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "connectorId": 123,
  "metadata": {},
  "path": [
    "<string>"
  ],
  "fetchAuth": {
    "type": "basic",
    "username": "<string>",
    "password": "<string>"
  },
  "mimeType": "<string>",
  "name": "<string>"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

spaceId
required

Space identifier for the asset you are trying to read, update, or delete.

Required string length: 2 - 6
assetId
string<uuid>
required

The asset UUID that uniquely identifies the record within the database.

Body

application/json

Payload for updating existing assets. Only include the fields that need to change—leave everything else out.

connectorId
number

Identifier of the connector (e.g., SharePoint, Google Drive) the asset belongs to.

metadata
object

JSON metadata string that will be stored alongside the asset (e.g., author, custom tags).

path
string[]

Hierarchical path (array of folder names) describing where the asset lives in the connector.

fetchAuth
object
mimeType
string

MIME type of the remote asset (e.g., "application/pdf", "text/plain").

name
string

Optional display name for the asset. Defaults to the filename if omitted.

Response

Asset metadata updated successfully.