hello, i'm trying to call postEvent with the RemoteAPI and PHP but the request always fails:

{"status_code": 210, "status_message": "Request format is not valid."}

my request looks like this:

PW] request: {"request":{"hwid":"XXXXXX","application":"XXXXXX","event":"my_event","attributes":{"key1":"1","key2":"1"},"timestampUTC":1508786404,"timestampCurrent":1508786404,"userId":"","device_type":1}}

can anyone point me in a direction?

i use the pwCall function from the documentation to send my request (see http://docs.pushwoosh.com/docs/createmessage under code example for PHP).

asked 23 Oct '17, 19:54
GianlucaZ's gravatar image



I would like to point out the fact that the "userId" parameter has no value.

Please note that for the сorrect processing of /postEvent request it should contain all necessary parameters as it is described in our Guide, including "userId" parameter.

Generally, this parameter is set by our SDK and by default, it is equal to Hardware ID (HWID). However, this parameter is not set in your /postEvent request for some reason.

Regards, Ivan

permanent link
answered 25 Oct '17, 07:40
iskoritzky's gravatar image


hi igor,

thank you, i misunderstood the userId parameter. i now fill it with the hwid and it works.

regards, gianluca

permanent link
answered 25 Oct '17, 08:03
GianlucaZ's gravatar image



We are glad to hear the issue is resolved!

Have a nice day!


(25 Oct '17, 10:23) iskoritzky iskoritzky's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 23 Oct '17, 19:54

question was seen: 825 times

last updated: 25 Oct '17, 10:23