Update Subaccount Permissions
Update the permission settings for a specific subaccount using its unique child UID.
⚙️ Update Subaccount Permissions
Modify specific permissions for a given subaccount (child user) in your SenderWiz customer account.
🔹 HTTP Request
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
X-API-KEY: your-api-key-here
💻 PHP Example
// 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
{
"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.
Last updated