Batch Update Assignments

put

/api/restapi/assignment/batch

Send a request to this endpoint to update one or more assignments. 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<ApiEntityAssignmentInput>
Type: array
Title: List<ApiEntityAssignmentInput>
Show Source
  • ApiEntityAssignmentInput
    Title: ApiEntityAssignmentInput
    This entity represents a Assignment object, a unique Assignment object can be identified by the following combinations of the fields.
    • assignmentId
    • activityId,resourceId,assignmentCode
    • activityCode,projectCode,workspaceCode,resourceId,assignmentCode
    • activityId,workspaceCode,resourceCode,resourceClass,assignmentCode
    • activityCode,projectCode,workspaceCode,resourceCode,resourceClass,assignmentCode
Nested Schema : ApiEntityAssignmentInput
Type: object
Title: ApiEntityAssignmentInput
This entity represents a Assignment object, a unique Assignment object can be identified by the following combinations of the fields.
  • assignmentId
  • activityId,resourceId,assignmentCode
  • activityCode,projectCode,workspaceCode,resourceId,assignmentCode
  • activityId,workspaceCode,resourceCode,resourceClass,assignmentCode
  • activityCode,projectCode,workspaceCode,resourceCode,resourceClass,assignmentCode
Show Source
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
Nested Schema : configuredFields
Type: array
The list of configured fields for an assignment.
Show Source
  • ApiEntityAssignmentConfiguredFieldValueInput
    Title: ApiEntityAssignmentConfiguredFieldValueInput
    This 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
  • ApiEntityCurveInput
    Title: ApiEntityCurveInput
    This 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: object
Title: ApiEntityAssignmentFinancialInput
Show Source
Nested Schema : ApiEntityAssignmentConfiguredFieldValueInput
Type: object
Title: ApiEntityAssignmentConfiguredFieldValueInput
This entity represents a AssignmentConfiguredFieldValue object, a unique AssignmentConfiguredFieldValue object can be identified by the following combinations of the fields.
  • assignmentConfiguredFieldValueId
  • columnDefinitionId
  • columnName
  • columnLabel
Show Source
  • Allowed Values: [ "DELETE" ]
    Provide value for this field during object update to delete the assigned configured field value.
  • The unique identifier for the Assignment Configured Field.
  • The system-generated identifier of an assignment.
  • Unique identifier of the column. This value should not be provided in create operation request data, however, it is required for update requests.
  • Minimum Length: 1
    Maximum Length: 100
    The user-specified UDF column label.
  • Minimum Length: 1
    Maximum Length: 100
    The user-specified UDF column name.
  • This holds values for Date type configured fields.
  • 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.
  • Maximum Length: 4000
    This holds values for Boolean, List and Text type configured fields.
Nested Schema : ApiEntityCurveInput
Type: object
Title: ApiEntityCurveInput
This entity represents a Curve object, a unique Curve object can be identified by the following combinations of the fields.
  • curveId
  • curveName,workspaceId
  • curveName,workspaceCode
Show Source
Nested Schema : buckets
Type: array
The buckets of a cost curve.
Show Source
Nested Schema : ApiEntityCurveBucketInput
Type: object
Title: ApiEntityCurveBucketInput
Show Source
Examples

Back to Top

Response

200 Response

A collection of object IDs mapped to a canonical link of the object with corresponding warning messages if any warnings were generated while processing the update request. For example - {"links":{"1":"https://[host]:[port]/api/restapi/[object]/1","2":"https://[host]:[port]/api/restapi/[object]/2"},"warnings":[{"primaryKeyName":"objectIdFieldName","uniqueFieldName":"object_code_01","uniqueFieldValue":"objectCodeFieldName","primaryKeyValue":1,"warningMessages":["warning_message_1","warning_message_2"]}]}

400 Response

Invalid input for the Assignment service.
Back to Top