Update an Assignment
put
/api/restapi/assignment
Send a request to this endpoint to update an assignment. An application object with an ID value that matches the ID value provided in the JSON object in the request body will be updated to reflect the JSON contents.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : ApiEntityAssignmentInput
Type:
objectTitle:
ApiEntityAssignmentInputThis entity represents a Assignment object, a unique Assignment object can be identified by the following combinations of the fields.
Show Source
- assignmentId
- activityId,resourceId,assignmentCode
- activityCode,projectCode,workspaceCode,resourceId,assignmentCode
- activityId,workspaceCode,resourceCode,resourceClass,assignmentCode
- activityCode,projectCode,workspaceCode,resourceCode,resourceClass,assignmentCode
-
activityCode: string
Minimum Length:
0Maximum Length:60The activity code of an assignment. -
activityId(required): integer
(int64)
The unique identifier for the activity.The activity object can also be identified by its unique criteria.
-
actualFinish: string
(date-time)
The date on which the assignment was completed.
-
actualStart: string
(date-time)
If the activity has started, the date work began on the activity.
-
actualThisPeriodUnits: number
(double)
The actual cost of an activity resource assignment during this period.
-
actualUnits: number
(double)
The sum of the actual non-overtime and the overtime units worked by the resource on the activity.
-
assignmentCode: string
Minimum Length:
0Maximum Length:60A unique identifier for the assignment. -
assignmentFinancial:
assignmentFinancial
List all assignment cost field spread data assigned to the assignment.
-
assignmentId: integer
(int64)
The system-generated identifier of an assignment.
-
atCompletionUnits: number
(double)
The sum of the actual units and remaining units for the resource assignment on the activity.
Calculated as Actual Units plus Remaining Units. -
calculateCostFromUnitsFlag: boolean
Indicates whether to calculate costs based on units for an assignment.
-
configuredFields: array
configuredFields
The list of configured fields for an assignment.
-
curveId: integer
(int64)
The resource's units and costs distributed over the duration of an activity.
-
curveName: string
Minimum Length:
1Maximum Length:255The name of the curve profile. -
driveActivityDates: boolean
Determines whether new resource or role assignments determine activity dates.
-
finishDate: string
(date-time)
The finish date for the assignment.
-
plannedDuration: number
(double)
The resource's total working time on the activity from the Planned Start date to the Planned Finish date.
-
plannedFinish: string
(date-time)
The date the assignment is scheduled to be finished. It is calculated by the scheduler and will not change once the activity has started.
-
plannedLag: number
(double)
The planned time lag between the activity's planned start date and the resource's planned start date on the activity.
-
plannedStart: string
(date-time)
The planned start date for the assignment on the activity.
-
plannedUnits: number
(double)
The planned units of work for the resource assignment on the activity.
-
plannedUnitsPerHour: number
(double)
The planned units per time at which the resource is to perform work on the activity.
-
pricePerUnitSourceType: string
Allowed Values:
[ "RESOURCE", "ROLE", "OVERRIDE" ]The value that indicates which Price/Unit will be used to calculate costs for the assignment. Valid options are Resource, Role, or Override. -
proficiency: string
Allowed Values:
[ "ONE", "TWO", "THREE", "FOUR", "FIVE" ]The skill level of the resource an activity is assigned to. The valid values are Master, Expert, Skilled, Proficient, and Inexperienced. -
projectCode: string
Minimum Length:
1Maximum Length:60The project code of an assignment. -
projectId: integer
(int64)
The unique identifier for the project.
-
rateType: string
Allowed Values:
[ "CUSTOM", "PRICE_PER_UNIT_1", "PRICE_PER_UNIT_2", "PRICE_PER_UNIT_3", "PRICE_PER_UNIT_4", "PRICE_PER_UNIT_5" ]The type of rate that defines the activity. -
remainingDuration: number
(double)
The remaining working time for the resource assignment on the activity, from the resource's remaining start date to the remaining finish date.
-
remainingFinish: string
(date-time)
The date the assignment is scheduled to be finished.
-
remainingLag: number
(double)
The time lag between the activity's remaining start date and the resource's remaining start date on the activity.
-
remainingLateFinish: string
(date-time)
The latest possible date the assignment must be finished to not delay the project finish date.
-
remainingLateStart: string
(date-time)
The latest possible date the assignment must begin to not delay the project finish date.
-
remainingStart: string
(date-time)
The date the assignment is scheduled to begin.
-
remainingUnits: number
(double)
The remaining units of work to be performed by the resource on the activity.
-
remainingUnitsPerHour: number
(double)
The units per time required for the resource assignment to complete the activity.
-
resourceClass: string
Allowed Values:
[ "RESOURCE", "ROLE" ]The class of the resource of an assignment. -
resourceCode: string
Minimum Length:
1Maximum Length:60The user-specified identifier of a resource. -
resourceCurve:
resourceCurve
The resource's units and costs distributed over the duration of an activity.
-
resourceId(required): integer
(int64)
The unique identifier for the resource.The resource object can also be identified by its unique criteria.
-
resourceRoleId: integer
(int64)
The identifier for the role assigned to the resource.
-
schedulePercentComplete: number
(double)
The assignment schedule percent complete, which specifies how much of the assignment's project baseline duration is complete so far.
-
startDate: string
(date-time)
The start date for the activity assignment.
-
totalRemainingLag: number
(double)
The sum of expired lag and remaining lag for the activity.
-
unitsPercentComplete: number
(double)
The percent complete of units for the resource assignment on the activity.
-
workspaceCode: string
Minimum Length:
0Maximum Length:60The workspace code of an assignment.
Nested Schema : assignmentFinancial
List all assignment cost field spread data assigned to the assignment.
Match All
List all assignment cost field spread data assigned to the assignment.
Show Source
-
object
ApiEntityAssignmentFinancialInput
Title:
ApiEntityAssignmentFinancialInput
Nested Schema : configuredFields
Type:
arrayThe list of configured fields for an assignment.
Show Source
-
Array of:
object ApiEntityAssignmentConfiguredFieldValueInput
Title:
ApiEntityAssignmentConfiguredFieldValueInputThis entity represents a AssignmentConfiguredFieldValue object, a unique AssignmentConfiguredFieldValue object can be identified by the following combinations of the fields.- assignmentConfiguredFieldValueId
- columnDefinitionId
- columnName
- columnLabel
Nested Schema : resourceCurve
The resource's units and costs distributed over the duration of an activity.
Match All
The resource's units and costs distributed over the duration of an activity.
Show Source
-
object
ApiEntityCurveInput
Title:
ApiEntityCurveInputThis entity represents a Curve object, a unique Curve object can be identified by the following combinations of the fields.- curveId
- curveName,workspaceId
- curveName,workspaceCode
Nested Schema : ApiEntityAssignmentFinancialInput
Type:
objectTitle:
Show Source
ApiEntityAssignmentFinancialInput-
activity: integer
(int64)
The system-generated identifier of an activity.
-
actualCost: number
(double)
The actual cost for the resource assignment on the activity. This field is in base currency and is calculated from actualCostProject field based on the specified exchange rate.
-
actualCostProject: number
(double)
The actual cost for the resource assignment on the activity. This value is based on the project currency.
-
actualThisPeriodCost: number
(double)
The labor, nonlabor, and material costs incurred during the current financial period. This field is in base currency and is calculated from actualThisPeriodCostProject field based on the specified exchange rate.
-
actualThisPeriodCostProject: number
(double)
The labor, nonlabor, and material costs incurred during the current financial period. This value is based on the project currency.
-
assignmentId: integer
(int64)
The unique identifier for the assignment.
-
atCompletionCost: number
(double)
The sum of the actual costs plus remaining costs for the resource assignment on the activity. This field is in base currency and is calculated from atCompletionCostProject field based on the specified exchange rate.
-
atCompletionCostProject: number
(double)
The sum of the actual costs plus remaining costs for the resource assignment on the activity. This value is based on the project currency.
-
plannedCost: number
(double)
The expected total cost of the item, such as an assignment, expense, or response plan. This field is in base currency and is calculated from plannedCostProject field based on the specified exchange rate.
-
plannedCostProject: number
(double)
The expected total cost of the item, such as an assignment, expense, or response plan. This value is based on the project currency.
-
pricePerUnit: number
(double)
Minimum Value:
0The price per unit of time for the resource or role. This field is in base currency and is calculated from pricePerUnitProject field based on the specified exchange rate. -
pricePerUnitProject: number
(double)
Minimum Value:
0The price per unit of time for the resource or role. This value is based on the project currency. -
project: integer
(int64)
The system-generated identifier of a project.
-
remainingCost: number
(double)
The remaining cost for the activity resource assignment. Calculated as Remaining Units multiplied by Cost/Time. This field is in base currency and is calculated from remainingCostProject field based on the specified exchange rate.
-
remainingCostProject: number
(double)
The remaining cost for the resource assignment on the activity. This value is based on the project currency.
-
resource: integer
(int64)
The system-generated identifier of a resource.
Nested Schema : ApiEntityAssignmentConfiguredFieldValueInput
Type:
objectTitle:
ApiEntityAssignmentConfiguredFieldValueInputThis entity represents a AssignmentConfiguredFieldValue object, a unique AssignmentConfiguredFieldValue object can be identified by the following combinations of the fields.
Show Source
- assignmentConfiguredFieldValueId
- columnDefinitionId
- columnName
- columnLabel
-
action: string
Allowed Values:
[ "DELETE" ]Provide value for this field during object update to delete the assigned configured field value. -
assignmentConfiguredFieldValueId: integer
(int64)
The unique identifier for the Assignment Configured Field.
-
assignmentId: integer
(int64)
The system-generated identifier of an assignment.
-
columnDefinitionId: integer
(int64)
Unique identifier of the column. This value should not be provided in create operation request data, however, it is required for update requests.
-
columnLabel: string
Minimum Length:
1Maximum Length:100The user-specified UDF column label. -
columnName: string
Minimum Length:
1Maximum Length:100The user-specified UDF column name. -
dateValue: string
(date-time)
This holds values for Date type configured fields.
-
numberValue: number
This holds values for Number, Integer and Cost type configured fields. Input for the cost configured field should be provided in the currency of record. For example project level currency in case of Activity, base currency for Company, workspace currency for Funds and record level currency for Project Actuals etc. configured fields.
-
textValue: string
Maximum Length:
4000This holds values for Boolean, List and Text type configured fields.
Nested Schema : ApiEntityCurveInput
Type:
objectTitle:
ApiEntityCurveInputThis entity represents a Curve object, a unique Curve object can be identified by the following combinations of the fields.
Show Source
- curveId
- curveName,workspaceId
- curveName,workspaceCode
-
buckets: array
buckets
The buckets of a cost curve.
-
curveId: integer
(int64)
The unique identifier of a curve.
-
curveName(required): string
Minimum Length:
1Maximum Length:255The name of the curve profile. -
pushDownType: string
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. -
workspaceCode: string
Minimum Length:
0Maximum Length:60The user-specified identifier of a workspace. -
workspaceId(required): integer
(int64)
The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
Nested Schema : buckets
Type:
arrayThe buckets of a cost curve.
Show Source
-
Array of:
object ApiEntityCurveBucketInput
Title:
ApiEntityCurveBucketInput
Nested Schema : ApiEntityCurveBucketInput
Type:
objectTitle:
Show Source
ApiEntityCurveBucketInput-
bucketLevel(required): integer
(int32)
The level of a curve bucket.
-
curveBucketId: integer
(int64)
The unique identifier of a curve bucket.
-
curveId: integer
(int64)
The unique identifier of a curve.
-
value: number
Numeric value of a bucket curve. Curve bucket values determine the shape of curves.
Examples
Back to Top
Response
204 Response
Successful operation with no content.
400 Response
Invalid input for the Assignment service.