Skip to content
  • Auto
  • Light
  • Dark
Get Started

Create

Create
client.Apps.Connectors.New(ctx, appID, body) (*ConnectorViewC1APIAppV1ConnectorViewExpandedarrayC1APIAppV1ConnectorServiceCreateResponse, error)
post/api/v1/apps/{app_id}/connectors/create

Create a configured connector.

Parameters
appIDstring

The appId field.

bodyCatalogIDfieldConfigfieldDescriptionfieldExpandMaskfieldUserIDsfieldAppConnectorNewParams
Hide ParametersShow Parameters
CatalogIDfield
optional
param.Field[string]

The catalogId field.

Configfield
optional

Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

Hide ParametersShow Parameters
Typestring
optional

The type of the serialized message.

Descriptionfield
optional
param.Field[string]

The description field.

ExpandMaskfield
optional
param.Field[PathsarrayC1APIAppV1ConnectorExpandMask]

The ConnectorExpandMask is used to expand related objects on a connector.

UserIDsfield
optional
param.Field[[]string]

The userIds field.

Returns
Request example Go
package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/-go"
  "github.com/stainless-sdks/-go/option"
)

func main() {
  client := conductoronesdk.NewClient(
    option.WithAPIKey("My API Key"),
  )
  c1APIAppV1ConnectorServiceCreateResponse, err := client.Apps.Connectors.New(
    context.TODO(),
    "app_id",
    conductoronesdk.AppConnectorNewParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", c1APIAppV1ConnectorServiceCreateResponse.ConnectorView)
}
200 Example
{
  "connectorView": {
    "appPath": "appPath",
    "connector": {
      "id": "id",
      "appId": "appId",
      "catalogId": "catalogId",
      "config": {
        "@type": "@type"
      },
      "description": "description",
      "displayName": "displayName",
      "oauthAuthorizedAs": {},
      "profileAllowList": [
        "string"
      ],
      "profileIgnoreList": [
        "string"
      ],
      "status": {
        "completedAt": "2019-12-27T18:11:19.117Z",
        "lastError": "lastError",
        "startedAt": "2019-12-27T18:11:19.117Z",
        "status": "SYNC_STATUS_UNSPECIFIED",
        "updatedAt": "2019-12-27T18:11:19.117Z"
      },
      "syncDisabledCategory": "syncDisabledCategory",
      "syncDisabledReason": "syncDisabledReason",
      "userIds": [
        "string"
      ]
    },
    "usersPath": "usersPath"
  },
  "expanded": [
    {
      "@type": "@type"
    }
  ]
}