Cannot create an API using the Dashboard API

Hi,

I already checked this, no issue around quote characters.
These got applied, when I pasted the code above, and added it under a code block

Any other tips?