Docs
Create Connector
POST /users/{userId}/connectors
POST
/users/{userId}/connectorsCompletes a Microsoft 365 sign-in started by Connectors_GetAuthorizeUrl and creates or reconnects the connector. Reconnecting the same account keeps its id and switches. mailSyncEnabled true turns mail sync on.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| userId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | Optional | |
| state | string | Optional | |
| mailSyncEnabled | boolean | Optional |
Response
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| emailAddress | string| null | |
| status | string| null | |
| mailSyncEnabled | boolean | |
| calendarOverlayEnabled | boolean | |
| returnPath | string| null |