While I am okay with doing the `json_decode` in the code, your patch only returns an ID if someone posts a ticket.  If they post a user or anything else, they will only get a `true` result with no id.  Either implement that more robustly or leave the decode and processing up to the end machine and get the ID from the location header like we already do.