> For the complete documentation index, see [llms.txt](https://api.senderwiz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.senderwiz.com/customer/subaccounts/update-subaccount-permissions.md).

# Update Subaccount Permissions

### ⚙️ Update Subaccount Permissions

Modify specific permissions for a given subaccount (child user) in your SenderWiz customer account.

***

#### 🔹 HTTP Request

```http
PUT API-URL/children/CHILD-UNIQUE-ID/permissions
```

***

#### 🔸 URL Segments

| Segment           | Required | Description                     |
| ----------------- | -------- | ------------------------------- |
| `CHILD-UNIQUE-ID` | ✅        | Unique identifier of subaccount |

***

#### 📤 PUT Parameters

| Parameter | Type   | Required | Description                             |
| --------- | ------ | -------- | --------------------------------------- |
| `type`    | string | ✅        | Permission group/type (e.g., campaigns) |
| `key`     | string | ✅        | Specific permission name (e.g., create) |
| `value`   | string | ✅        | Allowed values: `yes` or `no`           |

***

#### 🔐 Authorization Header

```http
X-API-KEY: your-api-key-here
```

***

#### 💻 PHP Example

```php
// UPDATE SUBACCOUNT PERMISSIONS
$response = $endpoint->updateChildPermissions('8e12c91b4a2d1', [
    [
        'type'  => 'campaigns',
        'key'   => 'create',
        'value' => 'yes'
    ],
    [
        'type'  => 'lists',
        'key'   => 'delete',
        'value' => 'no'
    ]
]);

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
```

***

#### 📦 Sample JSON Response

```json
{
  "status": "success",
  "message": "Permissions updated successfully."
}
```

***

#### 🧾 Notes

* Use the exact `CHILD-UNIQUE-ID` from the subaccount creation or listing response.
* You can update multiple permissions by passing multiple objects in the payload array.
