younifyd
Menu

/api/sample_evaluations/submitApproval (Execute Sample Approval action)

Execute Sample Approval action

POST/api/sample_evaluations/submitApproval

Use it in a workflow

  1. Add a step and choose the TradeBeyond connector.
  2. Pick the /api/sample_evaluations/submitApproval (Execute Sample Approval action) action (under SampleEvaluationController).
  3. Fill in the fields below, then reference the result from later steps as {{apiSampleEvaluationsSubmitapprovalExecuteSampleApprovalAction.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

approvalStagesListarray<object>
sampleEvaluationobject4 fields
statusobject3 fields
rejectReasonobject3 fields
onBehalfOfobject3 fields
rejectReasonCodestring
approvalCommentstring
customFieldsobject1 fields
aprvProfileIdstring
aprvProfileStageIdstring
rejectReasonListarray<object>3 fields
approverListarray<object>3 fields
shareFileAttachmentsarray<object>15 fields
messagestring
json
{
  "approvalStagesList": [
    {
      "sampleEvaluation": {
        "id": "string",
        "refNo": "string",
        "version": 0,
        "sampleId": "string"
      },
      "status": {
        "code": "string",
        "name": "string",
        "version": 0
      },
      "rejectReason": {
        "code": "string",
        "name": "string",
        "version": 0
      },
      "onBehalfOf": {
        "code": "string",
        "name": "string",
        "version": 0
      },
      "rejectReasonCode": "string",
      "approvalComment": "string",
      "customFields": {
        "dynamicModelMap": {}
      },
      "aprvProfileId": "string",
      "aprvProfileStageId": "string",
      "rejectReasonList": [
        {
          "code": "string",
          "name": "string",
          "version": 0
        }
      ],
      "approverList": [
        {
          "code": "string",
          "name": "string",
          "version": 0
        }
      ],
      "shareFileAttachments": [
        {
          "id": "string",
          "fileName": "string",
          "thumbnail": false,
          "filePath": "string",
          "fileSize": "string",
          "protocol": "string",
          "createUser": "string",
          "createUserName": "string",
          "updateUser": "string",
          "updateUserName": "string",
          "url": "string",
          "angle": 0
        }
      ]
    }
  ],
  "message": "string"
}

Response

Returns 200 with an object. Read it in later steps with {{apiSampleEvaluationsSubmitapprovalExecuteSampleApprovalAction.response.data.<field>}}.

approvalStagesListarray<object>
sampleEvaluationobject4 fields
statusobject3 fields
rejectReasonobject3 fields
onBehalfOfobject3 fields
rejectReasonCodestring
approvalCommentstring
customFieldsobject1 fields
aprvProfileIdstring
aprvProfileStageIdstring
rejectReasonListarray<object>3 fields
approverListarray<object>3 fields
shareFileAttachmentsarray<object>15 fields
messagestring
json
{
  "approvalStagesList": [
    {
      "sampleEvaluation": {
        "id": "string",
        "refNo": "string",
        "version": 0,
        "sampleId": "string"
      },
      "status": {
        "code": "string",
        "name": "string",
        "version": 0
      },
      "rejectReason": {
        "code": "string",
        "name": "string",
        "version": 0
      },
      "onBehalfOf": {
        "code": "string",
        "name": "string",
        "version": 0
      },
      "rejectReasonCode": "string",
      "approvalComment": "string",
      "customFields": {
        "dynamicModelMap": {}
      },
      "aprvProfileId": "string",
      "aprvProfileStageId": "string",
      "rejectReasonList": [
        {
          "code": "string",
          "name": "string",
          "version": 0
        }
      ],
      "approverList": [
        {
          "code": "string",
          "name": "string",
          "version": 0
        }
      ],
      "shareFileAttachments": [
        {
          "id": "string",
          "fileName": "string",
          "thumbnail": false,
          "filePath": "string",
          "fileSize": "string",
          "protocol": "string",
          "createUser": "string",
          "createUserName": "string",
          "updateUser": "string",
          "updateUserName": "string",
          "url": "string",
          "angle": 0
        }
      ]
    }
  ],
  "message": "string"
}

Need more? See the TradeBeyond guide for connection setup and behaviour shared by every action.