Create a source
post/sources
Creates a source.
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}The model for a source request.
| Name | Type | Required | Description |
|---|---|---|---|
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. |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 201 | Created | The source was created. | Headers | Schema |
| 400 | Bad Request | The request was invalid. | Schema | |
| 401 | Unauthorized | The user was not authenticated. | Schema | |
| 422 | Unprocessable Entity | The server understands the request but was unable to process the contained instructions. | Schema |