Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Ashley Johnson's Avatar

Ashley Johnson

Beigetreten 25. Jan. 2022

·

Letzte Aktivität 07. Feb. 2022

Folge ich

0

Follower

0

Gesamtaktivitäten

5

Stimmen

0

Abonnement

1

AKTIVITÄTSÜBERSICHT

Neueste Aktivität von Ashley Johnson

Ashley Johnson hat einen Kommentar hinterlassen

Community-Kommentar Developer - Zendesk APIs

The solution to this problem was that Zendesk has an admin option called enable multiple organisations for users which is not enabled by default. That API error message isn't clear, but enabling this option allowed me to add the organisation memberships.

 

Kommentar anzeigen · Gepostet 07. Feb. 2022 · Ashley Johnson

0

Follower

0

Stimmen

0

Kommentare


Ashley Johnson hat einen Kommentar hinterlassen

Community-Kommentar Developer - Zendesk APIs

Thanks Jason, I've just tested with this:

{
"organization_memberships":[
{
"user_id":388246483398,
"organization_id":360599321098
},
{
"user_id":388246483398,
"organization_id":360599321218
},
{
"user_id":388246483398,
"organization_id":360599321238
},
{
"user_id":388246483398,
"organization_id":360599321278
},
{
"user_id":388246483398,
"organization_id":360599321338
}
]
}

Kommentar anzeigen · Gepostet 27. Jan. 2022 · Ashley Johnson

0

Follower

0

Stimmen

0

Kommentare


Ashley Johnson hat einen Kommentar hinterlassen

Community-Kommentar Developer - Zendesk APIs

Sorry, I was trying to show the format, but made it confusing.

If I send one membership in the body, it appears to work. If I send more than one membership, I get that error.

Kommentar anzeigen · Bearbeitet 26. Jan. 2022 · Ashley Johnson

0

Follower

0

Stimmen

0

Kommentare


Ashley Johnson hat einen Post erstellt

Post Developer - Zendesk APIs

I'm trying to send a POST request to /api/v2/organization_memberships/create_many but always get this response:

error: TooManyValues
description: Parameter organization_memberships cannot specify more than 1 values
max_count: 1

Which seems odd for a create_many endpoint. The request body is

{
"organization_memberships": [
{
"user_id":388246483398,
"organization_id":360606612137
}
]
}

Just wondering if anyone has seen this before, and have any ideas what the problem might be? Any help would be most appreciated.

Gepostet 25. Jan. 2022 · Ashley Johnson

0

Follower

3

Stimmen

6

Kommentare