Skip to main content
Version: 2025-12-18

Close a target group

Now that you've hit your targeted number of respondents, let’s close your target group.

Closing a target group removes it from the Cint Exchange, preventing further responses. This guide details the two-step process:

  1. Retrieve fielding run status: First, retrieve the current status of your fielding run, specifically capturing its ETag from the response headers for concurrency control.
  2. Complete fielding run: Then, send a POST request to complete the fielding run, using the ETag to ensure you're acting on the most recent state.

Retrieve fielding run

GET /v1/demand/accounts/{account_id}/projects/{project_id}/target-groups/{target_group_id}/fielding-runs/{fielding_run_id}

Path parameters

You'll need to include the following parameters in the URL:

ParameterDescriptionExample
account_idYour unique account identifier (provided in your API Starter Kit).12345
project_idYour unique project identifier.ABC123
target_group_idYour unique target group identifier.12345
fielding_run_idYour unique fielding run identifier, different from your job_id.12345

Request header

You'll need to include these headers in your request:

ParameterDescriptionExample
AuthorizationYour JSON Web Token (JWT) used for authenticating your request. This token must be prefixed with Bearer.abcdef...123456
Cint-API-VersionSpecifies the API version you are targeting. This helps ensure compatibility with your integration. Always use the latest stable version.2025-12-18

Example cURL request:

curl \ 'https://api.cint.com/v1/demand/accounts/{account_id}/projects/{project_id}/target-groups/{target_group_id}/fielding-runs/{fielding_run_id}' \
-H 'Authorization: Bearer <YOUR_JWT_TOKEN>' \
-H 'Cint-API-Version: 2025-12-18'

Example response:

{
"account_id": "2428",
"project_id": "01K5058EMP52V7K3DZPK9YMB01",
"target_group_id": "01K5065XQ7G3PSD6H9WZETM5FB",
"id": "01K5065XQ7G3PSD6H9WZETM5FB",
"last_changed_at": "2025-09-13T00:13:54.266Z",
"last_changed_by": "18111163-dc18-4b84-abee-3b3141b289c0",
"status": "live",
"start_fielding_at": "2025-09-13T00:13:52.555Z",
"end_fielding_at": "2025-12-12T23:00:00.000Z",
"version": 1
}

Obtain the ETag from the response headers

You'll need to extract the ETag from the response headers.

The ETag is a strong validator for concurrency control, ensuring that you are modifying the most recent version of the resource.

You'll need to include this ETag in the If-Match header of your POST request.

Example response headers (showing ETag):

HTTP/1.1 200 OK
Content-Type: application/json
ETag: W/"5"
Content-Length: 200
Date: Mon, 07 Jul 2025 20:55:00 GMT

In this example, your ETag is W/"5".

Complete a fielding run

POST /v1/demand/accounts/{account_id}/projects/{project_id}/target-groups/{target_group_id}/fielding-runs/{fielding_run_id}/complete

Path parameters

You'll need to include the following parameters in the URL:

ParameterDescriptionExample
account_idYour unique account identifier (provided in your API Starter Kit)12345
project_idYour unique project identifier.ABC123
target_group_idYour unique target group identifier12345
fielding_run_idYour unique fielding run identifier, different from your job_id12345

Request headers

You'll need to include these headers in your request:

ParameterDescriptionExample
AuthorizationYour JSON Web Token (JWT) used for authenticating your request. This token must be prefixed with Bearer.abcdef...123456
Cint-API-VersionSpecifies the API version you are targeting. This helps ensure compatibility with your integration. Always use the latest stable version.2025-12-18
If-MatchThe ETag obtained from the response headers. Used for optimistic locking to prevent conflicting updates.W/"2"

Example cURL request:

curl -X POST \
'https://api.cint.com/v1/demand/accounts/{account_id}/projects/{project_id}/target-groups/{target_group_id}/fielding-runs/{fielding_run_id}/complete' \
-H 'Authorization: Bearer <YOUR_JWT_TOKEN>' \
-H 'Cint-API-Version: 2025-12-18' \
-H 'If-Match: W/"<YOUR_ETAG_VERSION>"'

A successful request will return an HTTP 204 No Content response code with no response body.

Upon successful completion, your target group's status will change from live to completed on the Cint Exchange, and it will no longer be visible to suppliers.