AgentConnect
Bots

Replace a Teams bot client secret

Check a new Microsoft Entra client secret for this bot’s app with the same token request a new install runs, then store it in place of the current one and push it to every serving daemon. The app ID and tenant ID stay the bot’s identity; the secret is write-only and never reaches the relay.

PUT
/v1/orgs/{orgId}/bots/{id}/msteams/credentials

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

orgId*string
id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/orgs/string/bots/string/msteams/credentials" \  -H "Content-Type: application/json" \  -d '{    "clientSecret": "string"  }'
{  "id": "string",  "name": "string",  "platform": "string",  "prebuilt": true,  "slackAppId": "string",  "discordAppId": "string",  "feishuAppId": "string",  "feishuRegion": "feishu",  "createdBy": "string",  "shareable": true,  "transport": "socket",  "inUseByAgentId": "string",  "agentIds": [    "string"  ],  "releasedWhenFreed": true,  "lastUsedAt": "string",  "freedFromAgent": "string",  "teamId": "string",  "workspaceId": "string",  "workspaceName": "string",  "revokedAt": "string",  "revokedReason": "app_uninstalled",  "revokedEvidence": "event",  "revokedCode": "string",  "credentialRejectedAt": "string",  "credentialRejectedCode": "string",  "externalAppId": "string",  "externalTenantId": "string",  "platformConfig": {    "property1": "string",    "property2": "string"  },  "createdAt": "string"}