Skip to main content
POST
/
api
/
kb
/
assets
/
upload
Upload an asset
curl --request POST \
  --url https://{customer-tenant}.nuwacom.ai/api/api/kb/assets/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'spaceId=<string>' \
  --form connectorId=123 \
  --form 'metadata={}' \
  --form 'path=<string>' \
  --form 'file=<any>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
spaceId
string
required
Required string length: 2 - 6
file
any
required
connectorId
number
metadata
object
path
string[]

Response

Asset already exists

id
string<uuid>
required
I