Bulk Delete Memberships

DELETE {{baseUrl}}/api/v2/group_memberships/destroy_many?ids=<string>

Immediately removes users from groups and schedules a job to unassign all working tickets that are assigned to the given user and group combinations.

Allowed For

  • Admins

Request Params

KeyDatatypeRequiredDescription
idsstringId of the group memberships to delete. Comma separated

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;job_status&quot;:{&quot;id&quot;:&quot;82de0b044094f0c67893ac9fe64f1a99&quot;,&quot;message&quot;:&quot;Completed at 2018-03-08 10:07:04 +0000&quot;,&quot;progress&quot;:2,&quot;results&quot;:[{&quot;action&quot;:&quot;delete&quot;,&quot;id&quot;:244,&quot;status&quot;:&quot;Deleted&quot;,&quot;success&quot;:true},{&quot;action&quot;:&quot;delete&quot;,&quot;id&quot;:245,&quot;status&quot;:&quot;Deleted&quot;,&quot;success&quot;:true}],&quot;status&quot;:&quot;completed&quot;,&quot;total&quot;:2,&quot;url&quot;:&quot;https://example.zendesk.com/api/v2/job_statuses/82de0b0467893ac9fe64f1a99.json&quot;}}