MadConnect Embedded Documentation
  • Getting Started
    • MadConnect Architecture
  • Implementation Guide
    • Integrating MadConnect Into Your Platform
    • Connector Management
      • Listing Connectors
      • Getting Connector Info
      • Configuring Connectors
      • Fetching Connector Configuration
      • Updating Connector Configuration
    • Connection Management
      • Setting up Connections
      • Getting list of Connections
      • Fetching Connection Details
      • Disabling/Enabling a Connection
      • Deleting a Connection
  • Embedded API Reference
    • Authorization APIs
      • Authorization URI
      • Get Token (By code)
      • Get Token (By refresh-token)
    • Connector Information APIs
      • Get All Connectors
      • Get connector information
    • Connector Configuration APIs
      • Get a Platform config (Connector Config)
      • Setup Connector
    • Connection APIs
      • Get All Connections
      • Create Connection
      • Fetch Connection
      • Delete Connection
      • Enable/Disable Connection
    • Status Codes
Powered by GitBook
On this page
  1. Implementation Guide
  2. Connection Management

Disabling/Enabling a Connection

Should the platform admin decide to pause data sync on a particular connector, this can be done using the Enable/Disable Connection API. This API takes the connection Id as a parameter and the desired state. The state variable takes the value 0 to disable the connection, and 1 to enable the connection. An example of the API call is shown below.

Path

/v1/partner/connection/9a1458ba6e977a5f/0

Method

PUT

Header

Content-Type: application/json

Authorization: Bearer access token

Query Params

NONE

PreviousFetching Connection DetailsNextDeleting a Connection

Last updated 1 year ago