Apply GitHub discovery selection
curl --request POST \
--url https://api.openworklabs.com/v1/connector-instances/{connectorInstanceId}/discovery/apply \
--header 'Content-Type: application/json' \
--data '
{
"selectedKeys": [
"<string>"
],
"autoImportNewPlugins": false
}
'{
"ok": true,
"item": {
"autoImportNewPlugins": true,
"connectorInstance": {
"id": "<string>",
"organizationId": "<string>",
"connectorAccountId": "<string>",
"remoteId": "<string>",
"name": "<string>",
"instanceConfigJson": {},
"lastSyncedAt": "2023-11-07T05:31:56Z",
"lastSyncCursor": "<string>",
"createdByOrgMembershipId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"connectorTarget": {
"id": "<string>",
"connectorInstanceId": "<string>",
"remoteId": "<string>",
"externalTargetRef": "<string>",
"targetConfigJson": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"createdPlugins": [
{
"id": "<string>",
"organizationId": "<string>",
"name": "<string>",
"description": "<string>",
"createdByOrgMembershipId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"memberCount": 4503599627370495,
"marketplaces": [
{
"id": "<string>",
"name": "<string>"
}
]
}
],
"createdMappings": [
{
"id": "<string>",
"connectorInstanceId": "<string>",
"connectorTargetId": "<string>",
"remoteId": "<string>",
"selector": "<string>",
"pluginId": "<string>",
"autoAddToPlugin": true,
"mappingConfigJson": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"materializedConfigObjects": [
{
"id": "<string>",
"organizationId": "<string>",
"title": "<string>",
"description": "<string>",
"searchText": "<string>",
"currentFileName": "<string>",
"currentFileExtension": "<string>",
"currentRelativePath": "<string>",
"createdByOrgMembershipId": "<string>",
"connectorInstanceId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"latestVersion": {
"id": "<string>",
"configObjectId": "<string>",
"schemaVersion": "<string>",
"normalizedPayloadJson": {},
"rawSourceText": "<string>",
"createdByOrgMembershipId": "<string>",
"connectorSyncEventId": "<string>",
"sourceRevisionRef": "<string>",
"isDeletedVersion": true,
"createdAt": "2023-11-07T05:31:56Z"
}
}
],
"sourceRevisionRef": "<string>",
"createdMarketplace": {
"id": "<string>",
"organizationId": "<string>",
"name": "<string>",
"description": "<string>",
"createdByOrgMembershipId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"pluginCount": 4503599627370495
}
}
}GitHub
Apply GitHub discovery selection
Creates OpenWork plugins and connector mappings from selected discovery candidates.
POST
/
v1
/
connector-instances
/
{connectorInstanceId}
/
discovery
/
apply
Apply GitHub discovery selection
curl --request POST \
--url https://api.openworklabs.com/v1/connector-instances/{connectorInstanceId}/discovery/apply \
--header 'Content-Type: application/json' \
--data '
{
"selectedKeys": [
"<string>"
],
"autoImportNewPlugins": false
}
'{
"ok": true,
"item": {
"autoImportNewPlugins": true,
"connectorInstance": {
"id": "<string>",
"organizationId": "<string>",
"connectorAccountId": "<string>",
"remoteId": "<string>",
"name": "<string>",
"instanceConfigJson": {},
"lastSyncedAt": "2023-11-07T05:31:56Z",
"lastSyncCursor": "<string>",
"createdByOrgMembershipId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"connectorTarget": {
"id": "<string>",
"connectorInstanceId": "<string>",
"remoteId": "<string>",
"externalTargetRef": "<string>",
"targetConfigJson": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"createdPlugins": [
{
"id": "<string>",
"organizationId": "<string>",
"name": "<string>",
"description": "<string>",
"createdByOrgMembershipId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"memberCount": 4503599627370495,
"marketplaces": [
{
"id": "<string>",
"name": "<string>"
}
]
}
],
"createdMappings": [
{
"id": "<string>",
"connectorInstanceId": "<string>",
"connectorTargetId": "<string>",
"remoteId": "<string>",
"selector": "<string>",
"pluginId": "<string>",
"autoAddToPlugin": true,
"mappingConfigJson": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"materializedConfigObjects": [
{
"id": "<string>",
"organizationId": "<string>",
"title": "<string>",
"description": "<string>",
"searchText": "<string>",
"currentFileName": "<string>",
"currentFileExtension": "<string>",
"currentRelativePath": "<string>",
"createdByOrgMembershipId": "<string>",
"connectorInstanceId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"latestVersion": {
"id": "<string>",
"configObjectId": "<string>",
"schemaVersion": "<string>",
"normalizedPayloadJson": {},
"rawSourceText": "<string>",
"createdByOrgMembershipId": "<string>",
"connectorSyncEventId": "<string>",
"sourceRevisionRef": "<string>",
"isDeletedVersion": true,
"createdAt": "2023-11-07T05:31:56Z"
}
}
],
"sourceRevisionRef": "<string>",
"createdMarketplace": {
"id": "<string>",
"organizationId": "<string>",
"name": "<string>",
"description": "<string>",
"createdByOrgMembershipId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"pluginCount": 4503599627370495
}
}
}Documentation Index
Fetch the complete documentation index at: https://openworklabs.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
Den TypeID with 'cin_' prefix and a 26-character base32 suffix.
Required string length:
30Pattern:
^cin_.*Body
application/json
Was this page helpful?
⌘I