Hyphen in Json vs. API PAGE BC13

sirvladd@hotmail.com[email protected] Member Posts: 1
edited 2020-11-25 in NAV Three Tier
Hi,

I'm trying to create a webhook to recieve events.

Json looks like this:

6qul0i2hns2g.png


API Page like this:

va57azdqs8yp.png

detail-type properties:

t8m1wtru5n1p.png

Response from postman:

luqff03xnf5w.png


If I change the - (Hyphen) to _ (Underscore) in both Json and API page, it works perfectly.

Does anyone know if there is a way to use Hyphen, since this is not a Json I can control?

If I post the URL in a browser and login with basic auth I get this response.

"version":0,"id":"bc241211-1a88-1e71-1c54-891b28265225","detail_type":"","source":"","account":"","time":"0001-01-01T00:00:00Z","region":"","resources":""

Looks like the Odata parser has converted the Hyphen to Underscore.

Sign In or Register to comment.