POST
/
v2
/
sources
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

Authorization
string
headerrequired

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

Body

application/json
displayName
string

A human-readable name for the source

sourceSpec
string
required

The name of the source spec to create a source for

properties
object

Response

201 - application/json
data
object
required