Create source
Create a new source
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
A human-readable name for the source
The name of the source spec to create a source for
curl --request POST \
--url https://api.portable.io/v2/sources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"sourceSpec": "google_calendar"
}'
{
"data": {
"id": 80190,
"displayName": "John Doe's Google Calendar",
"sourceSpec": "google_calendar",
"properties": [
{
"name": "email",
"displayName": "Email",
"type": "string",
"required": true,
"description": "Email of the calendar's user",
"value": ""
}
],
"createdAt": "2023‐06‐12T20:03:00Z",
"updatedAt": "2023-08-01T00:00:00Z"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
A human-readable name for the source
The name of the source spec to create a source for
Response
A human-readable name for the source
ALPHA
, BETA
, STABLE
, DEPRECATED
NONE
, BASIC
, TOKEN
, AUTH_CODE
, CLIENT_CREDENTIALS
, FETCH_CREDENTIALS
, OIDC
A machine-readable name for the property
A human-readable name for the property
The type of the property
STRING
, PASSWORD
, TEXT
, NUMBER
, BOOLEAN
, DATE
, DATETIME
, TIME
Whether the property's value is required
A human-readable description of the property
The properties of the source. This is a map of property names to their values. The names are defined in the propertyDefinitions
field of the source spec.
The timestamp marking when the source was created
The timestamp marking when the source was last updated
curl --request POST \
--url https://api.portable.io/v2/sources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"sourceSpec": "google_calendar"
}'
{
"data": {
"id": 80190,
"displayName": "John Doe's Google Calendar",
"sourceSpec": "google_calendar",
"properties": [
{
"name": "email",
"displayName": "Email",
"type": "string",
"required": true,
"description": "Email of the calendar's user",
"value": ""
}
],
"createdAt": "2023‐06‐12T20:03:00Z",
"updatedAt": "2023-08-01T00:00:00Z"
}
}