When creating Or Updating a record VIA API (using an iphone) unable to add interest.

Options

Assuming that the URL is actually a POST, then the issue is that the API enforces the security restrictions on interests before adding them. The interest is in a security category that keeps it hidden from the user, so the API does not allow updates via the client methods. If it were invoked via the server method, which have an admin privilege associated with them, then it would work because the admin account has access to this interest.

There is a simple workaround though. Instead of specifying the argument “add_interest_ids=nnnn”, specify “AddInterest=nnnn” as you would on any link that you want to set an interest. This will work as expected, and can also support the same syntax for multiple interests (e.g. comma-separated list).

Tagged:

Categories