Delete a ThirdPartyRelationshipAttribute and notify peer
This use case allows you to delete a ThirdPartyRelationshipAttribute, i.e. a LocalAttribute that has the property shareInfo.thirdPartyAddress
set.
Parameters
- The
attributeId
of the ThirdPartyRelationshipAttribute you want to delete.
On Success
- The ThirdPartyRelationshipAttribute will be deleted.
- All predecessors of the ThirdPartyRelationshipAttribute will be deleted.
- If the ThirdPartyRelationshipAttribute was succeeded, the
succeeds
property of the successor will be set to undefined. - A Notification with a ThirdPartyRelationshipAttributeDeletedByPeerNotificationItem is sent to the peer of the Attribute, informing them that you deleted the Attribute. Technically, the Attribute of the peer and all predecessors will get a
deletionInfo
withdeletionStatus
"DeletedByPeer"
and the time of receiving the Notification asdeletionDate
. - The
notificationId
is returned.
On Failure
- No Attribute can be deleted if you don’t have a LocalAttribute with given
attributeId
. - No Attribute can be deleted if the Attribute with given
attributeId
is not a ThirdPartyRelationshipAttribute.