Returns activities specified by the assigned code value.
get
/primeapi/restapi/v16.2/activity/project/{id}/codeType/{typeId}/codeValue/{code}
Request
Path Parameters
- code
-
Type:
stringRequired:true- id
Type:integer(int64)Required:true- typeId
Type:integer(int64)Required:true
Response
Supported Media Types
- application/json
200 Response
successful operation
Body
Root Schema : ApiEntityActivity
Type:
object- accountingVarianceLaborUnits
-
Type:
objectUnit - activityCode
-
Type:
stringThe project activity code assigned to the activity. - activityFinancial
-
Type:
objectApiEntityActivityFinancial - activityId
-
Type:
integer(int64)The unique identifier for the activity. - activityName
-
Type:
stringThe name of the activity. - activityPercentComplete
-
Type:
objectPercent - activityPriority
-
Type:
stringAllowed Values:[ "TOP", "HIGH", "NORMAL", "LOW", "LOWEST" ]Determines the priority of the activity when performing role leveling. - activityStatus
-
Type:
stringAllowed Values:[ "NOT_STARTED", "IN_PROGRESS", "COMPLETED" ]Determines the status of the activity. Valid values are Not Started, In Progress, and Completed. - activityType
-
Type:
stringAllowed Values:[ "ACTIVITY", "RESOURCE_DEPENDENT", "LEVEL_OF_EFFORT", "START_MILESTONE", "FINISH_MILESTONE", "SUMMARY" ]The type of activity. Valid values are Task Dependent, Resource Dependent, Level of Effort, Start Milestone, and Finish Milestone. - activityUncertainties
-
Type:
arrayactivityUncertaintiesUnique Items Required:trueLists the uncertainty distributions for the activity. - actualDuration
-
Type:
objectDuration - actualFinish
-
Type:
string(date-time)The date when the activity was completed. - actualLaborUnits
-
Type:
objectUnit - actualNonLaborUnits
-
Type:
objectUnit - actualStart
-
Type:
string(date-time)The date work on the activity began. - actualThisPeriodLaborUnits
-
Type:
objectUnit - actualThisPeriodNonLaborUnits
-
Type:
objectUnit - atCompletionBudgetLaborUnits
-
Type:
objectUnit - atCompletionDuration
-
Type:
objectDuration - atCompletionLaborUnits
-
Type:
objectUnit - atCompletionNonLaborUnits
-
Type:
objectUnit - baselineDuration
-
Type:
objectDuration - baselineFinishDate
-
Type:
string(date-time) - baselinePlannedLaborUnits
-
Type:
objectUnit - baselinePlannedNonLaborUnits
-
Type:
objectUnit - baselineStartDate
-
Type:
string(date-time) - calendar
-
Type:
integer(int64)The calendar assigned to the activity. - calendarName
-
Type:
stringThe name of the calendar. - codeValuesActivity
-
Type:
arraycodeValuesActivityUnique Items Required:trueLists all activity code types assigned to the activity with its corresponding value. - completedWeight
-
Type:
number(double) - constraintDate
-
Type:
string(date-time)The constraint date for the activity, if the activity has a constraint. - constraintType
-
Type:
stringAllowed Values:[ "START_ON", "START_ON_OR_BEFORE", "START_ON_OR_AFTER", "FINISH_ON", "FINISH_ON_OR_BEFORE", "FINISH_ON_OR_AFTER", "AS_LATE_AS_POSSIBLE", "MANDATORY_START", "MANDATORY_FINISH" ]The main restriction impacting the activity start or finish date. - critical
-
Type:
booleanDefault Value:falseDesignates an activity as critical. An activity is defined as critical based upon the project settings configured for the project. - drivingPath
-
Type:
booleanDefault Value:falseThe sequence of project activities from start to finish where the Total Duration is longer than any other path. - durationPercentComplete
-
Type:
objectPercent - durationPercentOfPlanned
-
Type:
objectPercent - durationType
-
Type:
stringAllowed Values:[ "FIXED_RATE", "FIXED_QUANTITY", "FIXED_DURATION_AND_UNITS", "FIXED_DURATION" ]Determines how remaining duration, units, and units/time are calculated when you update an activity that has resources assigned. The valid values are Fixed Units/Time, Fixed Units, Fixed Duration & Units, and Fixed Duration & Units/Time. - earlyFinish
-
Type:
string(date-time)The earliest possible date the activity can finish. This date is calculated based on network logic, schedule constraints, and resource availability. - earlyStart
-
Type:
string(date-time)The earliest possible date the remaining work for the activity can begin. This date is calculated based on network logic, schedule constraints, and resource availability. - earnedValueLaborUnits
-
Type:
objectUnit - estimateAtCompletionLaborUnits
-
Type:
objectUnit - estimateToCompletionLaborUnits
-
Type:
objectUnit - expectedFinish
-
Type:
string(date-time)The date you expect work on the activity to finish. - finishDate
-
Type:
string(date-time)The current finish date for the activity. - floatPath
-
Type:
integer(int64) - floatPathOrder
-
Type:
integer(int64) - freeFloat
-
Type:
objectDuration - laborUnitsCompletePercent
-
Type:
objectPercent - lateFinish
-
Type:
string(date-time)The latest possible date the activity can finish without delaying the project finish date. This date is calculated based on activity relationships, schedule constraints, and resource availability. - lateStart
-
Type:
string(date-time)The latest possible date the remaining work for the activity can begin without delaying the project finish date. This date is calculated based on activity relationships, schedule constraints, and resource availability. - location
-
Type:
integer(int64) - name
-
Type:
stringThe name of the activity. - nonLaborUnitsCompletePercent
-
Type:
objectPercent - owner
-
Type:
stringThe user responsible for the activity. - parentActivity
-
Type:
integer(int64)The ID of the higher-level activity that contains the activity. - percentCompleteType
-
Type:
stringAllowed Values:[ "PHYSICAL", "DURATION", "UNITS" ]Determines the way in which the application calculates the percent complete for the activity. Valid values are Physical, Duration, and Units. - percentCompleteWeightedBy
-
Type:
stringAllowed Values:[ "COST", "QUANTITY", "HOUR", "MANUAL" ]The method used to calculate the scope percentage completion for scope assignments. The weight is calculated using cost, quantity, hours, or manually entered values. - performancePercentComplete
-
Type:
objectPercent - physicalPercentComplete
-
Type:
objectPercent - plannedDuration
-
Type:
objectDuration - plannedFinish
-
Type:
string(date-time)The date the activity is scheduled to finish if the activity has not started. This date is calculated by the project scheduler but can be updated manually by the project manager. This date is not changed by the project scheduler after the activity has started. - plannedLaborUnits
-
Type:
objectUnit - plannedNonLaborUnits
-
Type:
objectUnit - plannedStart
-
Type:
string(date-time)The date the activity is scheduled to start. This date the activity is scheduled to begin is calculated by the project scheduler but can be updated manually by the project manager. This date cannot be changed by the project scheduler after the activity has started. - plannedValueLaborUnits
-
Type:
objectUnit - primaryResource
-
Type:
integer(int64)The user designated as the primary resource for the activity. - projectId
-
Type:
integer(int64)The unique identifier of the project to which the activity was added. - recordCount
-
Type:
integer(int32)The number of activities added to the project. - remainingDuration
-
Type:
objectDuration - remainingFinish
-
Type:
string(date-time)The date the remaining work for the activity is scheduled to finish. If this activity is not started, this date is the planned finish. This date can be updated manually by the user, but it is overwritten when you schedule the project. - remainingFloat
-
Type:
objectDuration - remainingLaborUnits
-
Type:
objectUnit - remainingLateFinish
-
Type:
string(date-time)The latest possible date the activity must finish without delaying the project finish date. This date is calculated by the project scheduler based on activity relationships, schedule constraints, and resource availability. When the activity is complete, this field is blank. - remainingLateStart
-
Type:
string(date-time)The latest possible date the remaining work for the activity must begin without delaying the project finish date. This date is calculated by the project scheduler based on activity relationship, schedule constraints, and resource availability. - remainingNonLaborUnits
-
Type:
objectUnit - remainingStart
-
Type:
string(date-time)The date the remaining work for the activity is scheduled to begin. This date can be updated manually by the user. Before the activity is started, this date is the same as the planned start. - resumeDate
-
Type:
string(date-time)The date when a suspended task or activity is resumed. - schedulePercentComplete
-
Type:
objectPercent - schedulePerfIndexLaborUnits
-
Type:
objectUnit - scheduleVarianceLaborUnits
-
Type:
objectUnit - scheduleVarIndexLaborUnits
-
Type:
objectUnit - scopePercentComplete
-
Type:
objectPercent - secondaryConstraintDate
-
Type:
string(date-time)The date for the activity's secondary constraint, if the activity has a secondary constraint. - secondaryConstraintType
-
Type:
stringAllowed Values:[ "START_ON", "START_ON_OR_BEFORE", "START_ON_OR_AFTER", "FINISH_ON", "FINISH_ON_OR_BEFORE", "FINISH_ON_OR_AFTER", "AS_LATE_AS_POSSIBLE", "MANDATORY_START", "MANDATORY_FINISH" ]The secondary restriction impacting the activity start or finish date. - sequenceNumber
-
Type:
integer(int32)The number that specifies the position of the activity relative to others within the view. - starred
-
Type:
booleanDefault Value:false - startDate
-
Type:
string(date-time)The current start date of the activity. For started activities, this is the actual start date. For not started activities, this is the planned start date until the project is scheduled. When scheduled, the start date field is set to the remaining early start date. - suspendDate
-
Type:
string(date-time)The date work has temporarily stopped on a given activity. - totalFloat
-
Type:
objectDuration - unitsPercentComplete
-
Type:
objectPercent - varDuration
-
Type:
objectPercent - varFinishDate
-
Type:
objectDuration - varianceAtCompletionLaborUnits
-
Type:
objectUnit - varLaborUnits
-
Type:
objectUnit - varNonLaborUnits
-
Type:
objectUnit - varStartDate
-
Type:
objectDuration - wbsId
-
Type:
integer(int64)The WBS that the activity is associated with. - weight
-
Type:
number(double)The importance of the activity in relation to other activities. - workPackageId
-
Type:
integer(int64)The unique identifier for the work package that the activity is associated with.
Nested Schema : Unit
Type:
objectNested Schema : ApiEntityActivityFinancial
Type:
object- accountingVariance
-
Type:
objectCost - activity
-
Type:
integer(int64)The unique identifier of the activity. - activityId
-
Type:
integer(int64) - actualExpenseCost
-
Type:
objectCost - actualLaborCost
-
Type:
objectCost - actualMaterialCost
-
Type:
objectCost - actualNonLaborCost
-
Type:
objectCost - actualThisPeriodLaborCost
-
Type:
objectCost - actualThisPeriodMaterialCost
-
Type:
objectCost - actualThisPeriodNonLaborCost
-
Type:
objectCost - actualTotalCost
-
Type:
objectCost - atCompletionExpenseCost
-
Type:
objectCost - atCompletionLaborCost
-
Type:
objectCost - atCompletionMaterialCost
-
Type:
objectCost - atCompletionNonLaborCost
-
Type:
objectCost - atCompletionTotalCost
-
Type:
objectCost - atCompletionVariance
-
Type:
objectCost - blplannedExpenseCost
-
Type:
objectCost - blplannedLaborCost
-
Type:
objectCost - blplannedMaterialCost
-
Type:
objectCost - blplannedNonLaborCost
-
Type:
objectCost - blplannedTotalCost
-
Type:
objectCost - budgetAtCompletion
-
Type:
objectCost - costVarianceIndex
-
Type:
number(double) - costVarianceLaborUnits
-
Type:
objectUnit - costVarianceLaborUnitsIndex
-
Type:
number(double) - earnedValueCost
-
Type:
objectCost - earnedValueLaborUnits
-
Type:
objectUnit - estimateAtCompletionCost
-
Type:
objectCost - estimateToCompletionCost
-
Type:
objectCost - expenseCostPercentComplete
-
Type:
objectPercent - expenseCostVariance
-
Type:
objectCost - laborCostPercentComplete
-
Type:
objectPercent - laborCostVariance
-
Type:
objectCost - materialCostPercentComplete
-
Type:
objectPercent - materialCostVariance
-
Type:
objectCost - nonLaborCostPercentComplete
-
Type:
objectPercent - nonLaborCostVariance
-
Type:
objectCost - plannedExpenseCost
-
Type:
objectCost - plannedLaborCost
-
Type:
objectCost - plannedMaterialCost
-
Type:
objectCost - plannedNonLaborCost
-
Type:
objectCost - plannedTotalCost
-
Type:
objectCost - plannedValueCost
-
Type:
objectCost - project
-
Type:
integer(int64) - remainingExpenseCost
-
Type:
objectCost - remainingLaborCost
-
Type:
objectCost - remainingMaterialCost
-
Type:
objectCost - remainingNonLaborCost
-
Type:
objectCost - remainingTotalCost
-
Type:
objectCost - schedulePerformanceIndex
-
Type:
number(double) - scheduleVariance
-
Type:
objectCost - scheduleVarianceIndex
-
Type:
number(double) - toCompletePerformanceIndex
-
Type:
number(double) - totalCostVariance
-
Type:
objectCost - varCost
-
Type:
objectCost - wbsId
-
Type:
integer(int64)
Nested Schema : Percent
Type:
object- bigDecimal
-
Type:
number - double
-
Type:
number(double)
Nested Schema : activityUncertainties
Type:
arrayUnique Items Required:
trueLists the uncertainty distributions for the activity.
-
Type:
objectApiEntityActivityUncertainty
Nested Schema : Duration
Type:
object- bigDecimal
-
Type:
number - double
-
Type:
number(double)
Nested Schema : codeValuesActivity
Type:
arrayUnique Items Required:
trueLists all activity code types assigned to the activity with its corresponding value.
-
Type:
objectApiEntityCodeValueActivity
Nested Schema : Cost
Type:
objectNested Schema : ApiEntityActivityUncertainty
Type:
object- activity
-
Type:
integer(int64)The ID of the activity that the uncertainty object is linked to. - activityUncertaintyId
-
Type:
integer(int64)The database generated unique value for the an uncertainty object. - distributionShape
-
Type:
stringAllowed Values:[ "NONE", "TRIANGLE", "UNIFORM", "GAUSSIAN", "SINGLE_POINT" ]The probability distribution that best models the three-point estimate durations. The valid values are Triangular and Uniform. - existenceProbability
-
Type:
objectPercent - maximumRemainingDuration
-
Type:
objectDuration - minimumRemainingDuration
-
Type:
objectDuration - monteCarloScenario
-
Type:
stringAllowed Values:[ "PRE_MITIGATED", "POST_MITIGATED", "BOTH" ]The Risk Analysis scenario. - mostLikelyRemainingDuration
-
Type:
objectDuration - project
-
Type:
integer(int64)The ID of the project that the activity is in.
Nested Schema : ApiEntityCodeValueActivity
Type:
object- activityId
-
Type:
integer(int64) - codeType
-
Type:
objectApiEntityCodeType - codeValue
-
Type:
objectApiEntityCodeValue - codeValueActivityId
-
Type:
integer(int64)KEY
Nested Schema : ApiEntityCodeType
Type:
object- assignments
-
Type:
arrayassignmentsUnique Items Required:true - codeTypeCode
-
Type:
stringAllowed Values:[ "Length[1-40]" ]This field displays the name of a code or value. - codeTypeId
-
Type:
integer(int64) - codeTypeName
-
Type:
stringAllowed Values:[ "Length[1-40]" ]STRING - workspace
-
Type:
integer(int64)The ID of the owning workspace.
Nested Schema : ApiEntityCodeValue
Type:
object- codeTypeId
-
Type:
integer(int64)The ID for the code type. - codeValueCode
-
Type:
stringAllowed Values:[ "LENGTH[1-32]" ]The unique identifier for the code value. - codeValueId
-
Type:
integer(int64)The unique identifier for the code value. - codeValueName
-
Type:
stringAllowed Values:[ "LENGTH[1-100]" ]The name of the code value. - parentCodeValue
-
Type:
integer(int64)The parent code value. - sequenceNumber
-
Type:
integer(int32)The number that specifies the position of the code value item within the code type list.
Nested Schema : assignments
Nested Schema : ApiEntityCodeEntityType
Type:
object- codeType
-
Type:
objectApiEntityCodeType - entityType
-
Type:
stringAllowed Values:[ "SCOPE_ITEM", "PROJECT", "SCOPE_ASSIGNMENT", "WBS", "WORK_PACKAGE", "ACTIVITY", "RESOURCE", "PBS", "CONTRACT", "RISK", "COMMITMENT", "REPORT", "TASKS", "PROJECT_FUND", "WORKSPACE_FUND" ] - primaryKey
-
Type:
integer(int64)