Skip to content
  • Auto
  • Light
  • Dark
Get Started

Update

Update
client.Apps.Connectors.Update(ctx, id, params) (*ConnectorViewC1APIAppV1ConnectorViewExpandedarrayC1APIAppV1ConnectorServiceUpdateResponse, error)
post/api/v1/apps/{app_id}/connectors/{id}

Update a connector.

Parameters
idstring

The id of the connector.

paramsAppIDfieldConnectorfieldExpandMaskfieldUpdateMaskfieldAppConnectorUpdateParams
Hide ParametersShow Parameters
AppIDfield
param.Field[string]

Path param: The id of the app the connector is associated with.

Connectorfield
optional
param.Field[IDstringAppIDstringCatalogIDstringConfigC1APIAppV1ConnectorConfigCreatedAtTimeDeletedAtTimeDescriptionstringDisplayNamestringDownloadURLstringOAuthAuthorizedAsC1APIAppV1OAuth2AuthorizedAsProfileAllowListarrayProfileIgnoreListarrayStatusC1APIAppV1ConnectorStatusSyncDisabledAtTimeSyncDisabledCategorystringSyncDisabledReasonstringUpdatedAtTimeUserIDsarrayC1APIAppV1Connector]

Body param: A Connector is used to sync objects into Apps

ExpandMaskfield
optional
param.Field[PathsarrayC1APIAppV1ConnectorExpandMask]

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

UpdateMaskfield
optional
param.Field[string]

Body param:

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"),
  )
  c1APIAppV1ConnectorServiceUpdateResponse, err := client.Apps.Connectors.Update(
    context.TODO(),
    "id",
    conductoronesdk.AppConnectorUpdateParams{
      AppID: "app_id",
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", c1APIAppV1ConnectorServiceUpdateResponse.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"
    }
  ]
}