UpdateGroup
This method can be used for the following functionality: Update an existing group.
Last updated
{
"name": "..."
}{
"group_owner": "..."
}{
"primary_contact_name": "..."
}{
"primary_contact_number": "..."
}{
"primary_contact_email": "..."
}{
"is_deleted": false
}{
"custom_fields": [
{
"key": "...",
"value": "..."
}
]
}{
"access": {
"sso_1": [
{
"action": "upsert",
"group_name": "AD-GROUP-2",
"project_access_level": "view",
"project_request_access_level": "edit"
},
{
"action": "remove",
"group_name": "AD-GROUP-1"
}
],
"member_admins": [
{
"action": "upsert",
"user_id": "66d2308ba99324532079e111",
"project_limit": "edit",
"project_request_limit": "action",
"add_user_method": "email",
"allow_user_invite": true
},
{
"action": "remove",
"user_id": "668ba6b1be6510000f78f79e"
}
]
}
}{
"auto_add_project_request": true
}{
"enable_project_team_notification": true
}curl -X PUT 'https://demo.attackforge.com/api/ss/group/5eab99471e18050942c7607a' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
"name": "ACME Corp. Technology Team",
"group_owner": "John Citizen",
"primary_contact_name": "Paul Citizen",
"primary_contact_number": "(555)555-5555",
"primary_contact_email": "john.citizen@attackforge.com",
"custom_fields": [
{
"key": "client_code",
"value": "CLIENT001"
}
],
"access": {
"member_admins": [
{
"action": "upsert",
"add_user_method": "email",
"allow_user_invite": true,
"project_limit": "view",
"project_request_limit": "none",
"user_id": "66d2308ba99324532079e111"
},
{
"action": "remove",
"user_id": "668ba6b1be6510000f78f79e"
}
],
"sso_1": [
{
"action": "upsert",
"group_name": "AD-GROUP-2",
"project_access_level": "view",
"project_request_access_level": "edit"
},
{
"action": "remove",
"group_name": "AD-GROUP-1"
}
],
"sso_2": []
},
"auto_add_project_request": true,
"enable_project_team_notifications": true
}'{
"status": "ok"
}