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
Returns
ConnectorViewC1APIAppV1ConnectorViewExpandedarrayC1APIAppV1ConnectorServiceCreateResponse
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"
}
]
}