API to Delete a Config
This endpoint deletes a config from given Connector.
DELETE /openapi/v1/connectors/<id>/config/<config_id>
where <id> is the id that can be obtained from the API to Get Connectors, <config_id> is the id that can be obtained from API to Get the Configs on Connector Config Type.
Parameters: The request URL contains the following parameters
Name |
Type |
Description |
---|---|---|
id |
string |
Specify the Connector ID |
config_id |
string |
Specify the config ID |
Response object: Returns the status of the config deleted for given Connector.
Sample response
resp = restclient.delete('/connectors/63c1272039042a1c0ddd3e20/config/63c1272039042a1c0ddd3e21')
if resp.status_code == 200:
parsed_resp = json.loads(resp.content)
print json.dumps(parsed_resp)
Sample response
{
"status": 200,
"code": 1000,
"message": "deleted"
}