Batch Update Measures

put

/api/restapi/measure/batch

Send a request to this endpoint to update one or more measures. For each JSON object provided in the request body, an application object with a matching ID value will be updated to reflect the JSON contents.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : List<ApiEntityMeasureInput>
Type: array
Title: List<ApiEntityMeasureInput>
Show Source
  • ApiEntityMeasureInput
    Title: ApiEntityMeasureInput
    This entity represents a Measure object, a unique Measure object can be identified by the following combinations of the fields.
    • measureId
    • measureName,workspaceId
    • measureName,workspaceCode
Nested Schema : ApiEntityMeasureInput
Type: object
Title: ApiEntityMeasureInput
This entity represents a Measure object, a unique Measure object can be identified by the following combinations of the fields.
  • measureId
  • measureName,workspaceId
  • measureName,workspaceCode
Show Source
  • Allowed Values: [ "SUM", "MIN", "MAX", "COUNT", "AVERAGE", "PERCENT", "NONE" ]
    Determines the type of aggregation to use in defining the expression. Valid values are Sum, Average, Max, Min, or Count.
  • Maximum Length: 4000
    The expression that calculates the base value for when the data type of a measure is set to Percentage.
    For example, if a measure is calculating the percentage of projects in a portfolio where the schedule variance is less than 10, the Base Expression would calculate the number of projects in the portfolio. The Base Expression would be: count(object.Project_projectCode).
  • Maximum Length: 4000
    The expression that is defined to capture the actual value of a measure.
  • Allowed Values: [ "MANUAL", "FORMULA", "BUILTIN" ]
    Determines whether the Actual value of the measure is manually entered or calculated using a formula.
  • Read Only: true
    Allowed Values: [ "OWNED", "INHERITED" ]
    Deprecated. As of 23.11.
    The type of association in the relationship between the measure and the workspace. Possible values are Owned and Inherited.
  • Maximum Length: 4000
    The detailed summary providing additional information about the measure.
  • The state of the measure.
    Enabled: The measure can be associated with portfolios for monitoring.
    Disabled: This measure cannot be used for monitoring portfolios.
  • Allowed Values: [ "REPORTING_PERIOD", "YEARLY", "QUARTERLY", "MONTHLY", "SEMIMONTHLY", "WEEKLY", "DAILY" ]
    The level of granularity for the measure.
  • Read Only: true
    Deprecated. As of 23.10.
    The self-link to the object. This field is populated only in the responses generated by the batch create APIs.
  • Determines whether the expression for the measure is based on project attributes or on other measures.
  • Allowed Values: [ "PERCENTAGE", "COST", "BOOLEAN", "NUMBER" ]
    Determines the type of data needed for the measure's value.
    Valid values are: Number, Cost, and Percentage.
  • Allowed Values: [ "WORKSPACE", "PROJECT", "PROGRAM" ]
    Determines the type of entity the values are created under.For example, for PROJECT as the measure entity type, measure will shown under projects' measures page.
  • The unique identifier of a measure.
  • Maximum Length: 255
    The name of the measure.
  • Allowed Values: [ "ACTIVITY", "PROGRAM", "PROJECT", "RISK" ]
    Determines the type of entity the values are aggregated from.For example, for Activity as the measure source type, measure will aggregate activities' data.
  • The unique identifier of a default period.
  • Allowed Values: [ "MANUAL", "AUTOMATIC" ]
    It describes how data is shared between parent and child workspaces.
    Manual: Data can be pulled down by child workspaces. This is the default option.
    Automatic: Data is automatically shared with all child workspaces.
  • Allowed Values: [ "SUM", "MIN", "MAX", "COUNT", "AVERAGE", "PERCENT", "NONE" ]
    Determines the type of expression and provides the format for the selected type.
  • Maximum Length: 4000
    The expression that calculates the base value for when the data type of a measure is set to Percentage.
    For example, if a measure is calculating the percentage of projects in a portfolio where the schedule variance is less than 10, the Base Expression would calculate the number of projects in the portfolio. The Base Expression would be: count(object.Project_projectCode).
  • Maximum Length: 4000
    The expression that is defined to capture the target value of a measure.
  • Allowed Values: [ "MANUAL", "FORMULA", "BUILTIN" ]
    Determines whether the Target value of the measure is manually entered or calculated using a formula.
  • Read Only: true
    Deprecated. As of 23.10.
    Date when the record was last updated.
  • Minimum Length: 0
    Maximum Length: 60
    The user-specified identifier of a workspace.
  • The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
Examples

Back to Top

Response

200 Response

A collection of object IDs mapped to a canonical link of the object. For example - {"links":{"1":"https://[host]:[port]/api/restapi/[object]/1","2":"https://[host]:[port]/api/restapi/[object]/2"}}

400 Response

Invalid input for a baseline measure.
Back to Top