Delete Target Group API

This API is used to get all the target groups available in the tenant.

📘

Know your endpoint

Based on the domain you use to log in to Webex Campaign, the endpoint domain for your API varies. For more information, refer to the Know Your API Endpoints section.

Headers

The following table describes the request headers:

Request HeaderDescription
content-typeapplication/json
authorizationAccess token or API Secret Key in Bearer format

Example: Bearer $(key)

Request Example



https://yourapihubdomain.io/v1/target-groups/16710111730000

Response Parameters

This API will return the following response parameters:

ParameterDescription
idReturns the id of the target group.
nameReturns the name of the target group that is deleted.
messageReturns the confirmation message.

Response Example

{
    "id": "16710111730000",
    "name": "Sample TG",
    "message": "target group deleted successfully"
}

Failure Response Codes

The API will return code within the response as per the following table in case of failure scenarios.

HTTP Status CodeCode within API ResponseDescription
400400I/O error on post request. Cannot retry due to server authentication, in streaming mode.
401430Authorization failed. This resource is not allowed to access using this TOKEN or KEY
401498Invalid token or Access token expired
404404Target group details not available for the requested id.
405405Method not supported
500500Internal server error
Language