Encoding special characters
If you are updating records via the API with text that has special characters like ampersands embedded in the text, you must first encode these.
see :
https://www.w3schools.com/tags/ref_urlencode.asp
e.g.
To update the client name to "New Company & Co",
this needs to be passed to the api as "New Company %26 Co"
Example request (OAuth 2.0):
http://<SERVER>/jsonapi/clients.json?version=6&action=update&input={
Authorization: Bearer <access_token>
"data": [
{
"clientCode": "1/P0909",
"clientName": "New Company %26 Co"
}
]
}
Example request (legacy username/password):
http://<SERVER>/jsonapi/clients.json?version=6&action=update&input={
"data": [
{
"clientCode": "1/P0909",
"clientName": "New Company %26 Co"
}
]
}&user=<username>&password=<password>