curl --request POST \
--url https://api.openworklabs.com/v1/connector-instances/{connectorInstanceId}/targets \
--header 'Content-Type: application/json' \
--data '
{
"connectorType": "github",
"remoteId": "<string>",
"targetKind": "repository_branch",
"config": {},
"externalTargetRef": "<string>"
}
'{
"ok": true,
"item": {
"id": "<string>",
"connectorInstanceId": "<string>",
"connectorType": "github",
"remoteId": "<string>",
"targetKind": "repository_branch",
"externalTargetRef": "<string>",
"targetConfigJson": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Creates a connector target under a connector instance.
curl --request POST \
--url https://api.openworklabs.com/v1/connector-instances/{connectorInstanceId}/targets \
--header 'Content-Type: application/json' \
--data '
{
"connectorType": "github",
"remoteId": "<string>",
"targetKind": "repository_branch",
"config": {},
"externalTargetRef": "<string>"
}
'{
"ok": true,
"item": {
"id": "<string>",
"connectorInstanceId": "<string>",
"connectorType": "github",
"remoteId": "<string>",
"targetKind": "repository_branch",
"externalTargetRef": "<string>",
"targetConfigJson": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Den TypeID with 'cin_' prefix and a 26-character base32 suffix.
30^cin_.*Was this page helpful?