Skip to main content
POST
/
v2
/
sources
Create 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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Source to create

sourceSpec
string
required

The name of the source spec to create a source for

displayName
string

A human-readable name for the source

properties
object

Response

Created

data
object
required