deleteAttribute

This method causes the specified attribute value (the value at the 'address' of a specific Object Class and ID and an Attribute Type ID) to be 'unset' or deleted. Subsequent calls to getAttribute() with the same parameters would then return None.

PARAMETERS

Param 1: object_type -- (string) must be in the list of valid Object Types as returned by getAttributeObjectTypes.

Param 2: object_id -- (string) the Journyx database ID of the Object that we are deleting an attribute value for. It should belong to the object class (table) indicated by the first parameter.

Param 3: id_attr_type -- (string) the ID of the Attribute Type that we are to delete the values of.

RETURN VALUE / EXCEPTIONS

If deleting the attribute value was successful, then None is returned, otherwise an exception is raised in these circumstances:

If the Object ID and Attribute Type ID were valid, but no value was previously set, then None is returned (no exception is raised.)

Arguments

Name Type Description
skey string

object_type string

The object type; see getAttributeObjectTypes to determine usable values.

object_id string

The ID of the object to remove the attribute from.

id_attr_type string

The ID of the attribute type.

Return

The deleteAttribute method returns zero (an integer).