POST
/
api
/
v1
/
appuid
/
{appUid}
/
contexts
/
{contextUid}
/
files
curl --request POST \
  --url https://a.api.mindset.ai/api/v1/appuid/{appUid}/contexts/{contextUid}/files \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "externalId": "<string>",
  "name": "<string>",
  "mimeType": "video/mp4",
  "sourceUrl": "<string>",
  "documentContent": "<string>",
  "autoPublish": true,
  "hideContentSegments": true,
  "knownAs": "<string>",
  "externalUrl": "<string>",
  "thumbnailUrl": "<string>",
  "thumbnail": "<string>",
  "viewOriginalSource": true,
  "contentHash": "<string>",
  "labels": [
    "<string>"
  ],
  "runId": "<string>"
}'
{
  "uid": "<string>",
  "externalId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "status": "<string>",
  "runId": "<string>",
  "mimeType": "<string>",
  "autoPublish": true,
  "hideContentSegments": true,
  "labels": [
    "<string>"
  ],
  "contentHash": "<string>",
  "knownAs": "<string>",
  "externalUrl": "<string>",
  "viewOriginalSource": true,
  "thumbnailUpdatedByAdmin": true
}

Authorizations

x-api-key
string
header
required

Path Parameters

appUid
string
required

Your application's uid

Minimum length: 1
contextUid
string
required

Your context's uid

Minimum length: 1

Body

application/json

Response

201
application/json
File accepted. Ingestion processing started

The response is of type object.