Approve or reject a task awaiting approval

Approves or rejects your own request while its task is in PendingReview. Nothing is applied until the task is approved.

Approving moves the task to Queued or Received, and it is processed in the next scheduled GAINS run. Rejecting moves it to RejectedNotApproved; nothing is applied and nothing needs to be undone. The decision is final: a task that is no longer in PendingReview is refused with 400, and so is an unknown TaskId. If an approval cannot be handed on to GAINS, the request fails and the task stays in PendingReview, so you can approve it again.

Only POST /api/v1/skus-locations/delete creates tasks that need approval. The approver is taken from your credentials, which must hold the task-approval permission, and is shown on the task as UpdatedBy. The request body carries only the decision and an optional note.

GAINS X version requirement:

  • Min: 10.0-ER2610
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

Unique identifier of the task under review

Body Params
string
enum
required
length ≥ 1
(?i)\A(approved|rejected)\z

The review outcome. "approved" releases the held records for processing; "rejected" refuses the request and nothing is applied

Allowed:
string
length between 0 and 1000

Optional note recorded against the decision and returned on the task, for example why approval was refused

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
*/*
application/json