Create a Data Source
POST/v1/data-sources
Create a Data Source
Request
- application/json
Body
The request received from the client.
name stringrequired
The name of the Data Source.
url stringrequired
The URL of the Data Source.
Responses
- 200
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
dataSource
object
required
A Data Source.
dataSourceId stringrequired
The Data Source identifier.
name stringrequired
The name of the Data Source.
url stringrequired
The URL of the Data Source.
timestamp date-timerequired
The date time at which the Data Source is created.
{
"dataSource": {
"dataSourceId": "string",
"name": "string",
"url": "string"
},
"timestamp": "2024-07-29T15:51:28.071Z"
}
Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
code int32
An error status code describing the response.
Enum Value | Description |
---|---|
0 | OK |
1 | Cancelled |
2 | Unknown |
3 | InvalidArgument |
4 | DeadlineExceeded |
5 | NotFound |
6 | AlreadyExists |
7 | PermissionDenied |
8 | ResourceExhausted |
9 | FailedPrecondition |
10 | Aborted |
11 | OutOfRange |
12 | Unimplemented |
13 | Internal |
14 | Unavailable |
15 | DataLoss |
16 | Unauthenticated |
Possible values: [0
, 1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
, 9
, 10
, 11
, 12
, 13
, 14
, 15
, 16
]
message string
A developer-facing error message
details
object[]
A list of messages containing details about the errors
@type stringrequired
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Loading...