Closed Alex-V69 closed 3 months ago
@Alex-V69 Thank you for approaching. Yes. It is showed in our API document as examples: https://docs.pixe.la/entry/get-graph-pixels
Well, I just thought that since it wasn't mentioned in the documentation anywhere (that the only correct response form is a query string in a URL) it may be a bug – after all, 'Update a pixel', for instance, accepts parameters in JSON format.
@Alex-V69 Normally, the GET endpoint of the REST API cannot specify a request body, but specifies parameters with query string. The "Update a pixel" API is a PUT endpoint, so a JSON structure can be specified as the request body.
I see. Thank you for explaining that.
I was having a hard time figuring out why I got '400' constantly. Apparently this endpoint doesn't support JSON because when I send parameters in the query string everything works, but when I send them as JSON data it doesn't.