Set agent connection provider
Sets the agent provider. Use native for normal Leadtime custom agents running on the internal native agent engine. Use cursorCloud for Cursor Cloud, devin for Devin, or selfHosted for external/provider mode.
/agents/{id}/connection-providerAuthorizationOAuth2 access token · headerrequiredapi:writeAuthorizationBearer token (JWT) · headerrequiredidstringrequiredfieldsToReturnstringComma-separated list of top-level response fields to return. Overrides the endpoint compact default unless responseShape=full is used.
responseShapestringAdvanced override. Omit for the endpoint compact default. Use full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
compactfullLT-Response-ShapestringAdvanced override. Set to full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
fullapplication/jsonobjectUnauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions