PatchConversationsMessageParticipant : Request Body must not be null

When i try to execute from our Premium App I get:

i get an error : Request Body must not be null

but the body is not null, but:

When I execute this from the Developer Tools API it works correct (and the message is answered correctly)

but when i do it from Developer Tools Code Editor I get the same error as on my Premium App:

Very weird.

So it works from the API Explorer but not from the Code Explorer.
Tried on several versions of the SDK (and also on latest 166), but same behaviour.

ContextID of one failing : 69936033-41f0-4724-8c41-9e9a4da88ff0

if success via API Explorer : 0d247b99-4245-4357-9c48-7a6255e0992f

Please advice.

PS. The ConversationID and Particpant stay the same if you keep transferring it to same queue and pick by same agent :slight_smile:

Hello,

Try with using:

let answerbody = {
  body: {
    state: "connected"
  }
};

The Javascript SDK Invocation (under API Request section) shows the use of options containing a body attribute in PATCH /api/v2/conversations/messages/{conversationId}/participants/{participantId}

Regards,

Yes that works, thanks.

Misread, not very consistent though, Messages is apparently the only mediatype using /requiring the body atrribute. all others do not require that.

So not an error, just not consisent.

Thanks

Frank

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.