changeDraftPurchaseOrderOwnership
PATCH/purchase-docs/headers/:headerId/draft-ownership
The draft of a purchase order relates to two user profiles:
- The user that originally created the draft:
draftOwnerUserProfile; - The user that is currently editing the draft:
currentDraftUserProfile.
This service changes the currentDraftUserProfile. The header id must refer to a draft purchase doc.
If the caller is currentDraftUserProfile the change of ownership takes place immediately. Otherwise,
a configurable amount of time must have passed since the last modification of the draft.
To access the service you need at least one of the following permissions:
| Permission (one of) |
|---|
| changeDraftPurchaseOrderOwnership |
| changeDraftPurchaseDocOwnership |