API ReferenceKnowledge Bases

/public/knowledge-bases/{knowledgeBaseId}/files

POST
/public/knowledge-bases/{knowledgeBaseId}/files

Path Parameters

knowledgeBaseId*string

Header Parameters

X-API-Version?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://companion-api.napster.com/public/knowledge-bases/string/files" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "originalName": "string",
  "contentType": "string",
  "createdAt": "2019-08-24T14:15:22Z"
}
{
  "code": "string",
  "description": "string",
  "type": "failure",
  "numericType": 0
}