# Add a Device Group to the Target List

Endpoint: POST /pipelines/v0/pipelines/{pipeline_id}/targetlists/{targetlist_id}/devicegroups/
Version: 1.0.0
Security: SCAPIAuthToken

## Path parameters:

  - `pipeline_id` (string, required)
    ID of the Pipeline

  - `targetlist_id` (string, required)
    ID of the Target List

## Request fields (application/json):

  - `device_group_id` (string)
    UUID of the Device Group

## Response 200 fields (application/json):

  - `id` (string)

  - `device_group_id` (string)

  - `target_list_id` (string)

  - `created_by` (number)

  - `updated_by` (number)

  - `created_at` (string)

  - `updated_at` (string)

## Response 401 fields (application/json):

  - `code` (integer, required)

  - `message` (string, required)

  - `content` (object)


