Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.
This repository was archived by the owner on May 14, 2020. It is now read-only.

createConversationThread gives error "The request was not formatted correctly" #32

Description

@varunkr

I am trying to create a thread in an existing conversation using the java api.

                        ConversationThread thread = new net.helpscout.api.model.thread.Message();
			thread.setType(ThreadType.Message); // Required
			thread.setBody(event.getMessageBody()); // Required
			thread.setStatus(Status.Closed); // Required

			PersonRef createdBy = new UserRef();
			createdBy.setId(event.getUserId());
			thread.setCreatedBy(createdBy); // Required

			client.createConversationThread(helpscoutTicketId, thread);

The exact error is

java.lang.RuntimeException: net.helpscout.api.exception.InvalidFormatException: The request was not formatted correctly

I don't understand why this is happening. Any ideas? Any help is appreciated. Thanks !!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions