---
title: Reassign Pending Approvals
slug: reassign-pending-approvals
docTags: 
createdAt: 2026-09-04T03:52:07.814Z
---

{
  "id": "F7DMX2NYGUmGBXoekJSoy",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.nue.io/cpq/approvals:reassign",
    "servers": [
      {
        "url": "https://api.nue.io/cpq/approvals:reassign",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/cpq/approvals:reassign",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Reassign Pending Approvals",
    "description": "<p>Routes one or more pending approvals to a different approver. The reassigned rows retain <code>originalApproverUserId</code> and <code>reassignedFromApprovalId</code>, so the reroute stays traceable.</p>\n<p>The response is the standard approvals envelope: <code>status</code> is <code>SUCCESS</code> or <code>FAILURE</code>, <code>data</code> carries the typed payload, and <code>warnings</code> and <code>errors</code> carry coded messages. Validation and engine failures are reported as coded errors on the envelope rather than as exceptions.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "ReassignApprovalRequest",
          "schema": [
            {
              "name": "approvalIds",
              "kind": "required",
              "type": "array",
              "description": "Approval record IDs to reassign.",
              "example": "",
              "itemType": "string",
              "customType": "string[]",
              "itemExample": "",
              "itemDefault": ""
            },
            {
              "name": "newApproverId",
              "kind": "required",
              "type": "string",
              "description": "<p>ID of the new approver (user or group).</p>"
            },
            {
              "name": "approverType",
              "kind": "optional",
              "type": "string",
              "description": "<p>Type of the target identified by <code>newApproverId</code>.</p>"
            },
            {
              "name": "message",
              "kind": "optional",
              "type": "string",
              "description": "Comment recorded on the reassignment."
            },
            {
              "name": "actor",
              "kind": "optional",
              "type": "string",
              "description": "Salesforce User ID to act on behalf of."
            },
            {
              "name": "source",
              "kind": "optional",
              "type": "string",
              "description": "<p>Channel the action came from. One of <code>UI</code>, <code>Email</code>, <code>API</code>, or <code>Flow</code>; recorded on the approval for audit. Defaults to <code>API</code> when omitted.</p>"
            }
          ],
          "modelRef": "#/components/schemas/ReassignApprovalRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "ApiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Approvals reassigned.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Envelope returned by the approval action verbs.",
            "customType": "ApprovalActionResponse",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "<p><code>SUCCESS</code> or <code>FAILURE</code>.</p>"
              },
              {
                "name": "data",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/ApprovalActionData",
                "customType": "ApprovalActionData",
                "schema": [
                  {
                    "name": "requestId",
                    "kind": "optional",
                    "type": "string",
                    "description": ""
                  },
                  {
                    "name": "recordId",
                    "kind": "optional",
                    "type": "string",
                    "description": ""
                  },
                  {
                    "name": "status",
                    "kind": "optional",
                    "type": "string",
                    "description": ""
                  },
                  {
                    "name": "isLocked",
                    "kind": "optional",
                    "type": "boolean",
                    "description": ""
                  },
                  {
                    "name": "approvers",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "modelRef": "#/components/schemas/ApprovalActionItem",
                    "customType": "ApprovalActionItem[]",
                    "schema": [
                      {
                        "name": "approvalId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "stepName",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "stepStatus",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "approverUserId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "originalApproverUserId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "reassignedFromApprovalId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "rejectionMessage",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      }
                    ]
                  },
                  {
                    "name": "approvals",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "modelRef": "#/components/schemas/ApprovalActionItem",
                    "customType": "ApprovalActionItem[]",
                    "schema": [
                      {
                        "name": "approvalId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "stepName",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "stepStatus",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "approverUserId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "originalApproverUserId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "reassignedFromApprovalId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "rejectionMessage",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      }
                    ]
                  }
                ]
              },
              {
                "name": "warnings",
                "kind": "optional",
                "type": "array",
                "description": "<p>A coded message returned on the envelope. Validation and engine failures are reported here rather than thrown, so a FAILURE response is still a well-formed body.</p>",
                "modelRef": "#/components/schemas/ApprovalMessage",
                "customType": "ApprovalMessage[]",
                "schema": [
                  {
                    "name": "severity",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p><code>ERROR</code>, <code>WARNING</code>, or <code>INFO</code>.</p>"
                  },
                  {
                    "name": "code",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Stable machine-readable code, e.g. <code>INVALID_PARAMETER</code>, <code>MISSING_PARAMETER</code>, <code>RECORD_NOT_FOUND</code>.</p>"
                  },
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Human-readable explanation.</p>"
                  }
                ]
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "description": "<p>A coded message returned on the envelope. Validation and engine failures are reported here rather than thrown, so a FAILURE response is still a well-formed body.</p>",
                "modelRef": "#/components/schemas/ApprovalMessage",
                "customType": "ApprovalMessage[]",
                "schema": [
                  {
                    "name": "severity",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p><code>ERROR</code>, <code>WARNING</code>, or <code>INFO</code>.</p>"
                  },
                  {
                    "name": "code",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Stable machine-readable code, e.g. <code>INVALID_PARAMETER</code>, <code>MISSING_PARAMETER</code>, <code>RECORD_NOT_FOUND</code>.</p>"
                  },
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Human-readable explanation.</p>"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ApprovalActionResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Missing or invalid parameter.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Envelope returned by the approval action verbs.",
            "customType": "ApprovalActionResponse",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "<p><code>SUCCESS</code> or <code>FAILURE</code>.</p>"
              },
              {
                "name": "data",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/ApprovalActionData",
                "customType": "ApprovalActionData",
                "schema": [
                  {
                    "name": "requestId",
                    "kind": "optional",
                    "type": "string",
                    "description": ""
                  },
                  {
                    "name": "recordId",
                    "kind": "optional",
                    "type": "string",
                    "description": ""
                  },
                  {
                    "name": "status",
                    "kind": "optional",
                    "type": "string",
                    "description": ""
                  },
                  {
                    "name": "isLocked",
                    "kind": "optional",
                    "type": "boolean",
                    "description": ""
                  },
                  {
                    "name": "approvers",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "modelRef": "#/components/schemas/ApprovalActionItem",
                    "customType": "ApprovalActionItem[]",
                    "schema": [
                      {
                        "name": "approvalId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "stepName",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "stepStatus",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "approverUserId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "originalApproverUserId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "reassignedFromApprovalId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "rejectionMessage",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      }
                    ]
                  },
                  {
                    "name": "approvals",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "modelRef": "#/components/schemas/ApprovalActionItem",
                    "customType": "ApprovalActionItem[]",
                    "schema": [
                      {
                        "name": "approvalId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "stepName",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "stepStatus",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "approverUserId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "originalApproverUserId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "reassignedFromApprovalId",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "rejectionMessage",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      }
                    ]
                  }
                ]
              },
              {
                "name": "warnings",
                "kind": "optional",
                "type": "array",
                "description": "<p>A coded message returned on the envelope. Validation and engine failures are reported here rather than thrown, so a FAILURE response is still a well-formed body.</p>",
                "modelRef": "#/components/schemas/ApprovalMessage",
                "customType": "ApprovalMessage[]",
                "schema": [
                  {
                    "name": "severity",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p><code>ERROR</code>, <code>WARNING</code>, or <code>INFO</code>.</p>"
                  },
                  {
                    "name": "code",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Stable machine-readable code, e.g. <code>INVALID_PARAMETER</code>, <code>MISSING_PARAMETER</code>, <code>RECORD_NOT_FOUND</code>.</p>"
                  },
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Human-readable explanation.</p>"
                  }
                ]
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "description": "<p>A coded message returned on the envelope. Validation and engine failures are reported here rather than thrown, so a FAILURE response is still a well-formed body.</p>",
                "modelRef": "#/components/schemas/ApprovalMessage",
                "customType": "ApprovalMessage[]",
                "schema": [
                  {
                    "name": "severity",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p><code>ERROR</code>, <code>WARNING</code>, or <code>INFO</code>.</p>"
                  },
                  {
                    "name": "code",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Stable machine-readable code, e.g. <code>INVALID_PARAMETER</code>, <code>MISSING_PARAMETER</code>, <code>RECORD_NOT_FOUND</code>.</p>"
                  },
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Human-readable explanation.</p>"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ApprovalActionResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Authentication failed or the Salesforce session is unavailable.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "Record not found.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "429",
        "description": "Salesforce limit exceeded.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "500",
        "description": "Unexpected or upstream failure.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "dmddpXeVDrx6oww_2Ckyt",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.nue.io/cpq/approvals:reassign \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"approvalIds\": [],\n     \"newApproverId\": \"\"\n     }'"
        },
        {
          "id": "McPIFFnARm4VXSUAv8UwD",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"approvalIds\": [],\n   \"newApproverId\": \"\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/cpq/approvals:reassign\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "mDBbTDTorJs4mL3fjNbh0",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/cpq/approvals:reassign\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"approvalIds\": [],\n   \"newApproverId\": \"\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "Qp2dypiBEv-CqKGusEvDb",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/cpq/approvals:reassign\"\n\npayload = json.dumps({\n   \"approvalIds\": [],\n   \"newApproverId\": \"\"\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "dmddpXeVDrx6oww_2Ckyt"
    },
    "results": {
      "languages": [
        {
          "id": "8SrD15hmaI47ZS2yp-hhS",
          "language": "200",
          "code": "// Approvals reassigned.\n{\n  \"status\": \"\",\n  \"data\": {\n    \"requestId\": \"\",\n    \"recordId\": \"\",\n    \"status\": \"\",\n    \"isLocked\": false,\n    \"approvers\": [\n      {\n        \"approvalId\": \"\",\n        \"stepName\": \"\",\n        \"stepStatus\": \"\",\n        \"approverUserId\": \"\",\n        \"originalApproverUserId\": \"\",\n        \"reassignedFromApprovalId\": \"\",\n        \"rejectionMessage\": \"\"\n      }\n    ],\n    \"approvals\": [\n      {\n        \"approvalId\": \"\",\n        \"stepName\": \"\",\n        \"stepStatus\": \"\",\n        \"approverUserId\": \"\",\n        \"originalApproverUserId\": \"\",\n        \"reassignedFromApprovalId\": \"\",\n        \"rejectionMessage\": \"\"\n      }\n    ]\n  },\n  \"warnings\": [\n    {\n      \"severity\": \"\",\n      \"code\": \"\",\n      \"message\": \"\"\n    }\n  ],\n  \"errors\": [\n    {\n      \"severity\": \"\",\n      \"code\": \"\",\n      \"message\": \"\"\n    }\n  ]\n}"
        },
        {
          "id": "dnAXS1N2N5K9LYanXDBjy",
          "language": "400",
          "code": "// Missing or invalid parameter.\n{\n  \"status\": \"\",\n  \"data\": {\n    \"requestId\": \"\",\n    \"recordId\": \"\",\n    \"status\": \"\",\n    \"isLocked\": false,\n    \"approvers\": [\n      {\n        \"approvalId\": \"\",\n        \"stepName\": \"\",\n        \"stepStatus\": \"\",\n        \"approverUserId\": \"\",\n        \"originalApproverUserId\": \"\",\n        \"reassignedFromApprovalId\": \"\",\n        \"rejectionMessage\": \"\"\n      }\n    ],\n    \"approvals\": [\n      {\n        \"approvalId\": \"\",\n        \"stepName\": \"\",\n        \"stepStatus\": \"\",\n        \"approverUserId\": \"\",\n        \"originalApproverUserId\": \"\",\n        \"reassignedFromApprovalId\": \"\",\n        \"rejectionMessage\": \"\"\n      }\n    ]\n  },\n  \"warnings\": [\n    {\n      \"severity\": \"\",\n      \"code\": \"\",\n      \"message\": \"\"\n    }\n  ],\n  \"errors\": [\n    {\n      \"severity\": \"\",\n      \"code\": \"\",\n      \"message\": \"\"\n    }\n  ]\n}"
        },
        {
          "id": "LqzK8Ko1DZED5HCa4SiiQ",
          "language": "401",
          "code": "// Authentication failed or the Salesforce session is unavailable.\n"
        },
        {
          "id": "42uSZU0rrGkAZ2cog9RnB",
          "language": "404",
          "code": "// Record not found.\n"
        },
        {
          "id": "3vPAuZolhf4b3bnSaEtoX",
          "language": "429",
          "code": "// Salesforce limit exceeded.\n"
        },
        {
          "id": "0t-1ZKYvQhRR_7CJVtADP",
          "language": "500",
          "code": "// Unexpected or upstream failure.\n"
        }
      ],
      "selectedLanguageId": "8SrD15hmaI47ZS2yp-hhS"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}