Create a file in a specific source

post/sources/{sourceId}/files

Uploads a file to a local source.

Request Samples

Response Samples

1{
2 "id": "3c8b12a9-17d1-4f1b-822b-423ec8491bc0",
3 "sourceId": "079b46b9-fbc4-44ce-8cb1-163330e4d812"
4}

Path Parameters

NameTypeRequiredDescription
sourceId
string
true

The id of the source to upload a file to.

Request Body

The schema to upload a source file.

NameTypeRequiredDescription
file
string
true

Responses

StatusMeaningDescription
201Created

The request succeeded.

HeadersSchema
400Bad Request

The request was invalid.

Schema
401Unauthorized

The user was not authenticated.

Schema
422Unprocessable Entity

The server understands the request but was unable to process the contained instructions.

Schema