Delete an own shared Attribute and notify peer
This use case allows you to delete an own shared Attribute, i.e. a LocalAttribute with a shareInfo
, that is owned by you.
It is created as a result of sharing the content
of a RepositoryAttribute with a peer.
Parameters
- The
attributeId
of the own shared Attribute you want to delete.
On Success
- The own shared Attribute will be deleted.
- All predecessors of the own shared Attribute will be deleted.
- If the own shared Attribute was succeeded, the
succeeds
property of the successor will be set to undefined. - If the
attributeId
relates to a RelationshipAttribute and there are shared copies of the own shared RelationshipAttribute or potential predecessors of it, theshareInfo.sourceAttribute
of those own shared ThirdPartyRelationshipAttributes will be set to undefined. - A Notification with a OwnSharedAttributeDeletedByOwnerNotificationItem is sent to the peer you shared the Attribute with, informing them that you deleted the Attribute. Technically, the peer shared Attribute at the peer’s side and all predecessors will get a
deletionInfo
withdeletionStatus
"DeletedByOwner"
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 an own shared Attribute.