/multiActions/<multiActionID>/executions

Allows you to initiate a multi action.

Prerequisite - x-csrf-token

You must get a x-csrf-token and include it in the header of every POST request.

For more information, see Get a Valid CSRF Token for the Multi Action API.

POST /api/v1/multiActions/<multiActionID>/executions

Initiates a multi action.

  • HTTP Headers:

    • Authorization: Bearer <access_token>

    • x-csrf-token: <csrf_token>

    • Content-Type: <application/json>

  • URL Parameters: <multiActionID> should be of format <packageId>:<objectId>. For example, t.TEST:CEEFOKMRUKJBY5BN47F1NS2L8G

  • Request Body:

    The following example request sets the parameter of different types.
    {
        "parameterValues": [
          {
            "parameterId": "TargetVersion",
            "value": {
              "memberIds": [
                "public.Plan"
              ],
              "hierarchyId": null,
            },
          },
          {
            "parameterId": "time",
             "value": {
               "memberIds": [
                 [
                   "(all)",
                   "2021",
                   "H1",
                   "20211",
                   "202101"
                 ],
                 [
                   "(all)",
                   "2021",
                   "H1",
                   "20211",
                   "202102"
                 ]
               ],
               "hierarchyId": "YHQM",
            },
          },
          {
             "parameterId": "numberParameter",
              "value": 42
          }
        ]
    }
    
    If no parameters are required, keep an empty array in the body:
    {
    
        "parameterValues": [
    
        ]
    
    }
  • Response Body:

    Response

    Example Response

    202: Accepted (multi action is initiated successfully)

    {    
        "executionId": "36E0030483176958796298412062C9F0",
        "links": [
            href: "/ t.TEST:CEEFOKMRUKJBY5BN47F1NS2L8G /executions/<36E0030483176958796298412062C9F0>"
            rel: "STATUS"
        ]
    }
    

    400: Bad request

    {
        "messages": [
            {
                "code": "599000999",
                "severity": "error",
                "message": "Invalid request. Please provide a valid request body."
            }
        ]
    }
    

    401: Unauthorized

    Unauthorized

    403: Forbidden

    "messages": [
    {
    "code": "596000998",
    "severity": "error",
    "message": "You are not authorized to execute MULTIACTIONS  t.TEST:CEEFOKMRUKJBY5BN47F1NS2L8G "
    }
    ]
    }
    

    404: Not found

    "messages": [
    {
    "code": "596000996",
    "severity": "error",
    "message": "The resource does not exist or you do not have permission to read it."
    }
    ]
    }
    

    500: Server error/exception

    {
    "messages": [
    {
    "code": "597000997",
    "severity": "error",
    "message": "<some internal server error>"
    }
    ]
    }