These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

How to remove a party's primary organization? This is 2017 (20.2.65.9955)

Curious - how do you clear out a party's Co_ID? Looking through some code, and it looks like we're trying to delete this entity:

/api/GroupMember?EntityId=ORGRELATIONSHIP-{orgId}:{partyId}

But that GroupMember entity doesn't exist; nor does the inverse {partyId}:{orgId}. There doesn't seem to be any GroupMember entity that associates the party and the org.

The only connection I see is that the /Party endpoint shows the organization in the PrimaryOrganization object:

	"PrimaryOrganization": {
		"$type": "Asi.Soa.Membership.DataContracts.PrimaryOrganizationInformationData, Asi.Contracts",
		"OrganizationPartyId": "12345",
		"Name": "Some Company",
		"Title": "Some Title"
	},

So I'm wondering how to remove the party from the org - can I just GET/PUT and remove that whole PrimaryOrganization object? Or set OrganizationPartyId to a blank string? Or is there another entity somewhere else that needs to be deleted too?

Thanks!