Syntax Error on PATCH API when trying to pass JSON body

I’m getting this syntax error when I add JSON to the body of my API PATCH request:

Status code 400
{“code”:“rest_invalid_json”,“message”:“Invalid JSON body passed.”,“data”:{“status”:400,“json_error_code”:4,“json_error_message”:“Syntax error”}}

Here is what the entry looks like:

It seems to work if I use parameters, but I need to access these nested values. Am I formatting something wrong? Is there a way to access these variables with parameters?

At first, you have an error in your json
use jsonlint to validate it. You have a trailing comma actually after the customer note.

1 Like

Oh, duh again, that worked. Thanks!

1 Like