Updating Address failing
Hi,
I'm getting a 200 OK response when sending a small JSON update to update a record, but the changes are not being reflected when I GET the relevant organisation's details (or look at the record in Insightly itself).
The URL I'm PUTting to is
https://api.insight.ly/v2.2/Organisations/82635973/Addresses/42828577
And the JSON is simply
{
"ADDRESS_ID": 42828577,
"ADDRESS_TYPE": "WORK",
"STATE": "Aberdeenshire"
}
Authorisation's fine - I have no problems actually GETting stuff or getting 200 OK status responses.
The response is :
{
"ADDRESS_ID": 42828577,
"ADDRESS_TYPE": "WORK",
"STREET": null,
"CITY": null,
"STATE": "Aberdeenshire",
"POSTCODE": null,
"COUNTRY": null
}
Which implies a successful update. However, GETting that organisation_id shows the state field has not been updated :
{
"ORGANISATION_ID": 82635973,
"ORGANISATION_NAME": "NHS Grampian - Aberdeen Royal Infirmary",
....
"ADDRESSES":
[
{ "ADDRESS_ID": 42828577,
"ADDRESS_TYPE": "WORK",
...
"STATE": "107",
...
}
]
}
Any ideas?
Comments
Additionally, if one leaves out the ADDRESS_ID from the body, despite specifying it in the URL, it creates a new address entry.
Graham,
We're looking into this one. It should be working, and we're opening a bug to check into it.
Please sign in to leave a comment.