Create a source

post/sources

Creates a source.

Request Samples

Response Samples

1{
2 "description": "Files with much info",
3 "id": "079b46b9-fbc4-44ce-8cb1-163330e4d812",
4 "inputType": "file",
5 "name": "Info Files",
6 "sourceType": "local"
7}

Request Body

The model for a source request.

NameTypeRequiredDescription
description
string or null
false

The description of the source.

id
string or null
false

The ID of the source.

inputType
string
true

The input type of the source.

metadata
Metadata or null
false

The metadata associated with the source.

name
string
true

The name of the source.

remoteUri
string or null
false

The remote URI of the source.

secrets
Secrets or null
false

The secrets associated with the source.

sourceType
string
true

The type of the source.

Responses

StatusMeaningDescription
201Created

The source was created.

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