---
title: Add new source to an existing access group
canonical: https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/access-group/add-new-source-to-an-existing-access-group/
product: CloudConnexa Docs
---

# Add new source to an existing access group

`POST /api/v1/access-groups/{id}/source`

Sources can be defined as specific resources or as all resources of a certain type (including both existing and newly created ones).

**Examples:**

1. **All Networks**

```
"source": [
  {
    "type": "NETWORK_SERVICE",
    "allCovered": true
  }
],
```

This configuration allows all networks, including their applications and IP services, to access this access group’s destination resources.

1. **Specific Network**

```
"source": [
 {
   "type": "NETWORK_SERVICE",
   "parent": "00000000-0000-0000-0000-000000000001",
   "allCovered": true
 }
],
```

This configuration allows a specific network with ID `00000000-0000-0000-0000-000000000001`, including its applications and IP services, to access this access group’s destination resources.

1. **Specific IP Service within a Network**

```
"source": [
  {
    "type": "NETWORK_SERVICE",
    "parent": "00000000-0000-0000-0000-000000000001",
    "children": ["00000000-0000-0000-0000-000000000002"]
    "allCovered": true
  }
],
```

This configuration allows a specific IP service with ID `00000000-0000-0000-0000-000000000002` within a network with ID `00000000-0000-0000-0000-000000000001` to access this access group’s destination resources.’

## Body parameter

```json
{
  "type": "USER_GROUP",
  "allCovered": true,
  "parent": "00000000-0000-0000-0000-000000000000",
  "children": [
    "00000000-0000-0000-0000-000000000000"
  ]
}
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| id | path | string | true | Access group ID |
| body | body | [AccessItemSourceRequest](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/schemas/accessitemsourcerequest.md) | true | none |
| » type | body | string | false | none |
| » allCovered | body | boolean | false | none |
| » parent | body | string | false | none |
| » children | body | \[string\] | false | none |

### Enumerated Values

| Parameter | Value |
| --- | --- |
| » type | USER\_GROUP |
| » type | NETWORK\_SERVICE |
| » type | HOST |

## Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [AccessGroupResponse](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/schemas/accessgroupresponse.md) |

To perform this operation, you must be authenticated by means of one of the following methods: oauth

---

Prev: [Create a new access group](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/access-group/create-a-new-access-group.md)
Next: [Remove source from an existing access group](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/access-group/remove-source-from-an-existing-access-group.md)
Index: https://openvpn.net/cloud-docs/llms.txt
