Twenty API
APIsStoryPricingReleases
Docs
  • User Guide
  • Developers
APIsStoryPricingReleases
Docs
  • User Guide
  • Developers
27.8k
  1. connectedAccounts
  • General
    • Get Open Api Schema
      GET
  • apiKeys
    • Find Many apiKeys
      GET
    • Create One apiKey
      POST
    • Create Many apiKeys
      POST
    • Find One apiKey
      GET
    • Delete One apiKey
      DELETE
    • Update One apiKey
      PATCH
    • Find apiKey Duplicates
      POST
  • auditLogs
    • Find Many auditLogs
      GET
    • Create One auditLog
      POST
    • Create Many auditLogs
      POST
    • Find One auditLog
      GET
    • Delete One auditLog
      DELETE
    • Update One auditLog
      PATCH
    • Find auditLog Duplicates
      POST
  • attachments
    • Find Many attachments
      GET
    • Create One attachment
      POST
    • Create Many attachments
      POST
    • Find One attachment
      GET
    • Delete One attachment
      DELETE
    • Update One attachment
      PATCH
    • Find attachment Duplicates
      POST
  • blocklists
    • Find Many blocklists
    • Create One blocklist
    • Create Many blocklists
    • Find One blocklist
    • Delete One blocklist
    • Update One blocklist
    • Find blocklist Duplicates
  • calendarEvents
    • Find Many calendarEvents
    • Create One calendarEvent
    • Create Many calendarEvents
    • Find One calendarEvent
    • Delete One calendarEvent
    • Update One calendarEvent
    • Find calendarEvent Duplicates
  • calendarChannels
    • Find Many calendarChannels
    • Create One calendarChannel
    • Create Many calendarChannels
    • Find One calendarChannel
    • Delete One calendarChannel
    • Update One calendarChannel
    • Find calendarChannel Duplicates
  • calendarChannelEventAssociations
    • Find Many calendarChannelEventAssociations
    • Create One calendarChannelEventAssociation
    • Create Many calendarChannelEventAssociations
    • Find One calendarChannelEventAssociation
    • Delete One calendarChannelEventAssociation
    • Update One calendarChannelEventAssociation
    • Find calendarChannelEventAssociation Duplicates
  • calendarEventParticipants
    • Find Many calendarEventParticipants
    • Create One calendarEventParticipant
    • Create Many calendarEventParticipants
    • Find One calendarEventParticipant
    • Delete One calendarEventParticipant
    • Update One calendarEventParticipant
    • Find calendarEventParticipant Duplicates
  • companies
    • Find Many companies
    • Create One company
    • Create Many companies
    • Find One company
    • Delete One company
    • Update One company
    • Find company Duplicates
  • connectedAccounts
    • Find Many connectedAccounts
      GET
    • Create One connectedAccount
      POST
    • Create Many connectedAccounts
      POST
    • Find One connectedAccount
      GET
    • Delete One connectedAccount
      DELETE
    • Update One connectedAccount
      PATCH
    • Find connectedAccount Duplicates
      POST
  • favorites
    • Find Many favorites
    • Create One favorite
    • Create Many favorites
    • Find One favorite
    • Delete One favorite
    • Update One favorite
    • Find favorite Duplicates
  • favoriteFolders
    • Find Many favoriteFolders
    • Create One favoriteFolder
    • Create Many favoriteFolders
    • Find One favoriteFolder
    • Delete One favoriteFolder
    • Update One favoriteFolder
    • Find favoriteFolder Duplicates
  • timelineActivities
    • Find Many timelineActivities
    • Create One timelineActivity
    • Create Many timelineActivities
    • Find One timelineActivity
    • Delete One timelineActivity
    • Update One timelineActivity
    • Find timelineActivity Duplicates
  • viewFields
    • Find Many viewFields
    • Create One viewField
    • Create Many viewFields
    • Find One viewField
    • Delete One viewField
    • Update One viewField
    • Find viewField Duplicates
  • viewGroups
    • Find Many viewGroups
    • Create One viewGroup
    • Create Many viewGroups
    • Find One viewGroup
    • Delete One viewGroup
    • Update One viewGroup
    • Find viewGroup Duplicates
  • viewFilters
    • Find Many viewFilters
    • Create One viewFilter
    • Create Many viewFilters
    • Find One viewFilter
    • Delete One viewFilter
    • Update One viewFilter
    • Find viewFilter Duplicates
  • viewFilterGroups
    • Find Many viewFilterGroups
    • Create One viewFilterGroup
    • Create Many viewFilterGroups
    • Find One viewFilterGroup
    • Delete One viewFilterGroup
    • Update One viewFilterGroup
    • Find viewFilterGroup Duplicates
  • viewSorts
    • Find Many viewSorts
    • Create One viewSort
    • Create Many viewSorts
    • Find One viewSort
    • Delete One viewSort
    • Update One viewSort
    • Find viewSort Duplicates
  • views
    • Find Many views
    • Create One view
    • Create Many views
    • Find One view
    • Delete One view
    • Update One view
    • Find view Duplicates
  • webhooks
    • Find Many webhooks
    • Create One webhook
    • Create Many webhooks
    • Find One webhook
    • Delete One webhook
    • Update One webhook
    • Find webhook Duplicates
  • workflows
    • Find Many workflows
    • Create One workflow
    • Create Many workflows
    • Find One workflow
    • Delete One workflow
    • Update One workflow
    • Find workflow Duplicates
  • workflowEventListeners
    • Find Many workflowEventListeners
    • Create One workflowEventListener
    • Create Many workflowEventListeners
    • Find One workflowEventListener
    • Delete One workflowEventListener
    • Update One workflowEventListener
    • Find workflowEventListener Duplicates
  • workflowVersions
    • Find Many workflowVersions
    • Create One workflowVersion
    • Create Many workflowVersions
    • Find One workflowVersion
    • Delete One workflowVersion
    • Update One workflowVersion
    • Find workflowVersion Duplicates
  • workflowRuns
    • Find Many workflowRuns
    • Create One workflowRun
    • Create Many workflowRuns
    • Find One workflowRun
    • Delete One workflowRun
    • Update One workflowRun
    • Find workflowRun Duplicates
  • workspaceMembers
    • Find Many workspaceMembers
    • Create One workspaceMember
    • Create Many workspaceMembers
    • Find One workspaceMember
    • Delete One workspaceMember
    • Update One workspaceMember
    • Find workspaceMember Duplicates
  • messageThreads
    • Find Many messageThreads
    • Create One messageThread
    • Create Many messageThreads
    • Find One messageThread
    • Delete One messageThread
    • Update One messageThread
    • Find messageThread Duplicates
  • messages
    • Find Many messages
    • Create One message
    • Create Many messages
    • Find One message
    • Delete One message
    • Update One message
    • Find message Duplicates
  • messageChannels
    • Find Many messageChannels
    • Create One messageChannel
    • Create Many messageChannels
    • Find One messageChannel
    • Delete One messageChannel
    • Update One messageChannel
    • Find messageChannel Duplicates
  • messageParticipants
    • Find Many messageParticipants
    • Create One messageParticipant
    • Create Many messageParticipants
    • Find One messageParticipant
    • Delete One messageParticipant
    • Update One messageParticipant
    • Find messageParticipant Duplicates
  • messageFolders
    • Find Many messageFolders
    • Create One messageFolder
    • Create Many messageFolders
    • Find One messageFolder
    • Delete One messageFolder
    • Update One messageFolder
    • Find messageFolder Duplicates
  • messageChannelMessageAssociations
    • Find Many messageChannelMessageAssociations
    • Create One messageChannelMessageAssociation
    • Create Many messageChannelMessageAssociations
    • Find One messageChannelMessageAssociation
    • Delete One messageChannelMessageAssociation
    • Update One messageChannelMessageAssociation
    • Find messageChannelMessageAssociation Duplicates
  • notes
    • Find Many notes
    • Create One note
    • Create Many notes
    • Find One note
    • Delete One note
    • Update One note
    • Find note Duplicates
  • noteTargets
    • Find Many noteTargets
    • Create One noteTarget
    • Create Many noteTargets
    • Find One noteTarget
    • Delete One noteTarget
    • Update One noteTarget
    • Find noteTarget Duplicates
  • opportunities
    • Find Many opportunities
    • Create One opportunity
    • Create Many opportunities
    • Find One opportunity
    • Delete One opportunity
    • Update One opportunity
    • Find opportunity Duplicates
  • people
    • Find Many people
    • Create One person
    • Create Many people
    • Find One person
    • Delete One person
    • Update One person
    • Find person Duplicates
  • tasks
    • Find Many tasks
    • Create One task
    • Create Many tasks
    • Find One task
    • Delete One task
    • Update One task
    • Find task Duplicates
  • taskTargets
    • Find Many taskTargets
    • Create One taskTarget
    • Create Many taskTargets
    • Find One taskTarget
    • Delete One taskTarget
    • Update One taskTarget
    • Find taskTarget Duplicates
  • Metadata
  • Core
  1. connectedAccounts

Update One connectedAccount

Twenty SaaS
https://api.twenty.com/rest
Twenty SaaS
https://api.twenty.com/rest
PATCH
/connectedAccounts/{id}

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Query Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Successful operation
Body

🟠400Bad Request
🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.twenty.com/rest/connectedAccounts/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "handle": "string",
    "provider": "string",
    "accessToken": "string",
    "refreshToken": "string",
    "lastSyncHistoryId": "string",
    "authFailedAt": "2019-08-24T14:15:22Z",
    "handleAliases": "string",
    "scopes": [
        "string"
    ],
    "accountOwnerId": "41bfc29a-63f5-4057-9938-10cfd5e1771b"
}'
Response Response Example
200 - Example 1
{
    "data": {
        "updateConnectedAccount": {
            "handle": "string",
            "provider": "string",
            "accessToken": "string",
            "refreshToken": "string",
            "lastSyncHistoryId": "string",
            "authFailedAt": "2019-08-24T14:15:22Z",
            "handleAliases": "string",
            "scopes": [
                "string"
            ],
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "createdAt": "2019-08-24T14:15:22Z",
            "updatedAt": "2019-08-24T14:15:22Z",
            "deletedAt": "2019-08-24T14:15:22Z",
            "accountOwnerId": "41bfc29a-63f5-4057-9938-10cfd5e1771b",
            "accountOwner": null,
            "messageChannels": [
                {
                    "visibility": "METADATA",
                    "handle": "string",
                    "type": "email",
                    "isContactAutoCreationEnabled": true,
                    "contactAutoCreationPolicy": "SENT_AND_RECEIVED",
                    "excludeNonProfessionalEmails": true,
                    "excludeGroupEmails": true,
                    "isSyncEnabled": true,
                    "syncCursor": "string",
                    "syncedAt": "2019-08-24T14:15:22Z",
                    "syncStatus": "ONGOING",
                    "syncStage": "FULL_MESSAGE_LIST_FETCH_PENDING",
                    "syncStageStartedAt": "2019-08-24T14:15:22Z",
                    "throttleFailureCount": 0,
                    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                    "createdAt": "2019-08-24T14:15:22Z",
                    "updatedAt": "2019-08-24T14:15:22Z",
                    "deletedAt": "2019-08-24T14:15:22Z",
                    "connectedAccountId": "ac03972a-5ca5-43c5-b96f-c519ac843b7a",
                    "connectedAccount": null,
                    "messageChannelMessageAssociations": [
                        {
                            "messageExternalId": "string",
                            "messageThreadExternalId": "string",
                            "direction": "INCOMING",
                            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                            "createdAt": "2019-08-24T14:15:22Z",
                            "updatedAt": "2019-08-24T14:15:22Z",
                            "deletedAt": "2019-08-24T14:15:22Z",
                            "messageChannelId": "75ffdad4-1f3d-4135-8650-e108fea3e73d",
                            "messageId": "8540d774-4863-4d2b-b788-4ecb19412e85",
                            "messageChannel": null,
                            "message": null
                        }
                    ],
                    "messageFolders": [
                        {
                            "name": "string",
                            "syncCursor": "string",
                            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                            "createdAt": "2019-08-24T14:15:22Z",
                            "updatedAt": "2019-08-24T14:15:22Z",
                            "deletedAt": "2019-08-24T14:15:22Z",
                            "messageChannelId": "75ffdad4-1f3d-4135-8650-e108fea3e73d",
                            "messageChannel": null
                        }
                    ]
                }
            ],
            "calendarChannels": [
                {
                    "handle": "string",
                    "syncStatus": "ONGOING",
                    "syncStage": "FULL_CALENDAR_EVENT_LIST_FETCH_PENDING",
                    "visibility": "METADATA",
                    "isContactAutoCreationEnabled": true,
                    "contactAutoCreationPolicy": "AS_PARTICIPANT_AND_ORGANIZER",
                    "isSyncEnabled": true,
                    "syncCursor": "string",
                    "syncedAt": "2019-08-24T14:15:22Z",
                    "syncStageStartedAt": "2019-08-24T14:15:22Z",
                    "throttleFailureCount": 0,
                    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                    "createdAt": "2019-08-24T14:15:22Z",
                    "updatedAt": "2019-08-24T14:15:22Z",
                    "deletedAt": "2019-08-24T14:15:22Z",
                    "connectedAccountId": "ac03972a-5ca5-43c5-b96f-c519ac843b7a",
                    "connectedAccount": null,
                    "calendarChannelEventAssociations": [
                        {
                            "eventExternalId": "string",
                            "recurringEventExternalId": "string",
                            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                            "createdAt": "2019-08-24T14:15:22Z",
                            "updatedAt": "2019-08-24T14:15:22Z",
                            "deletedAt": "2019-08-24T14:15:22Z",
                            "calendarChannelId": "87f3fb51-eab2-403c-819b-a5c45b46ef0e",
                            "calendarEventId": "71851222-0b3f-4165-8103-f92e6eb2c9da",
                            "calendarChannel": null,
                            "calendarEvent": null
                        }
                    ]
                }
            ]
        }
    }
}
Modified at 2025-04-14 03:24:16
Previous
Delete One connectedAccount
Next
Find connectedAccount Duplicates
Built with