curl --request POST \
--url https://api.portable.io/v2/sources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sourceSpec": "google_calendar"
}
'{
"data": {
"$ref": "#/components/examples/sourceWithNoProperties/value"
}
}Create a new source
curl --request POST \
--url https://api.portable.io/v2/sources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sourceSpec": "google_calendar"
}
'{
"data": {
"$ref": "#/components/examples/sourceWithNoProperties/value"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Source to create
Created
Show child attributes
Show child attributes
ALPHA, BETA, STABLE, DEPRECATED NONE, BASIC, TOKEN, AUTH_CODE, CLIENT_CREDENTIALS, FETCH_CREDENTIALS, OIDC Show child attributes
A machine-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 name for the property
A human-readable description of the property
{
"$ref": "#/components/examples/sourceSpecGcal/value"
}A human-readable name for the source
The timestamp marking when the source was created
The timestamp marking when the source was last updated