Skip to content

Commit 71cad5d

Browse files
authored
Update docs for delete suborg api
1 parent 32052c9 commit 71cad5d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/API.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,11 +1052,20 @@ curl https://shuffler.io/api/v1/orgs -H "Authorization: Bearer APIKEY"
10521052
Deletes an organization. Only possible for sub-organizations.
10531053

10541054
**This requires you to have already removed all workflows, and will NOT clean up all the data in the database until it expires (3 months~)**
1055+
**Only **admins of the parent organization** can delete a sub-organization.**
10551056

10561057
Methods: DELETE
10571058

10581059
```bash
1059-
curl -XDELETE https://shuffler.io/api/v1/orgs/{org_id} -H "Authorization: Bearer APIKEY"
1060+
curl -XDELETE https://shuffler.io/api/v1/orgs/{parent_org_id} -H "Authorization: Bearer APIKEY"
1061+
```
1062+
1063+
### Request Body
1064+
1065+
```json
1066+
{
1067+
"suborg_id": "YOUR_SUBORG_ID_TO_DELETE"
1068+
}
10601069
```
10611070

10621071
**Success response**

0 commit comments

Comments
 (0)