changeDraftSalesDocOwnership
PATCH/sales-docs/:id/draft-ownership
The draft of a sales document 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 thecurrentDraftUserProfile. The sales doc header id must refer to a draft item. If the caller iscurrentDraftUserProfilethe 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) |
|---|
| changeDraftSalesDocOwnership |
| changeDraftSalesOrderOwnership |