decrementAttributeValue

Decrement attribute value.

This API call is for editing custom objects. Erply has an object storage where you can store custom data for plug-ins, integrations etc.

For other object storage functions, see getObjects, saveObject, deleteObject (which allow to manipulate whole objects), and incrementAttributeValue, decrementAttributeValue — which provide a way to atomically increment or decrement one numeric field of a specific object (eg. to implement a counter).

Input parameters

Parameter name Description Possible value Required
objectID ID of the object Integer yes
attributeName Object field name String yes
amount Amount to decrement Integer or decimal yes
partnerKey This request can only be called if you have our partnerKey. Will return error 1016 if invalid. String yes

Response

Field name Type Description
attributeValue Attribute value after update