Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.

If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping

Answers may be delayed for posts that do not include sufficient information.

Is editing of attributes via the Web Service API only possible through deletion?

According to the Web Service API documentation, attributes are edited by removing the old values and (re-)adding all the new values:

To make most common editing operations possible we then added a couple of "remove" operations to get rid of old values.

When looking at the "notes" attribute in the provided example:

is it necessary to remove all notes even though I only want to edit one specific note?

The removing and (re-)adding via the Web Services API works, but it will delete and re-insert all the respective rows in tables ca_attributes and ca_attributes_values. When editing the attribute via the Providence UI, it is possible to edit a single note resulting in an updated value in the ca_attributes_values table with the database id remaining the same. Can this operation also be performed via the Web Services API or is the Web Services API limited to the remove/(re-)adding approach?

Sign In or Register to comment.