Batch Create Constraints

post

/api/restapi/constraint/batch

Send a request to this endpoint to create one or more constraints.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : List<ApiEntityConstraintInput>
Type: array
Title: List<ApiEntityConstraintInput>
Show Source
  • ApiEntityConstraintInput
    Title: ApiEntityConstraintInput
    This entity represents a Constraint object, a unique Constraint object can be identified by the following combinations of the fields.
    • constraintId
    • constraintCode,constraintName,projectId
    • constraintCode,constraintName,projectCode,workspaceCode
Nested Schema : ApiEntityConstraintInput
Type: object
Title: ApiEntityConstraintInput
This entity represents a Constraint object, a unique Constraint object can be identified by the following combinations of the fields.
  • constraintId
  • constraintCode,constraintName,projectId
  • constraintCode,constraintName,projectCode,workspaceCode
Show Source
Nested Schema : codeValues
Type: array
The list of code values for a constraint. This entity can only be used to assign codeValues or create codeValues on the fly.
Show Source
  • ApiEntityCodeValueConstraintInput
    Title: ApiEntityCodeValueConstraintInput
    This entity represents a CodeValueConstraint object, a unique CodeValueConstraint object can be identified by the following combinations of the fields.
    • codeValueConstraintId
    • codeValueId
    • codeTypeId,codeValueCode
    • codeTypeCode,codeValueCode
    • codeTypeCode,parentId,codeValueCode
    • codeValueCode,codeTypeId,parentId
    • codeTypeCode,codeValueCode,projectCode
    • codeTypeCode,codeValueCode,projectId
    • codeTypeCode,codeValueCode,parentId,projectCode
    • codeTypeCode,codeValueCode,parentId,projectId
Nested Schema : configuredFields
Type: array
The list of configured fields for a constraint.
Show Source
  • ApiEntityConstraintConfiguredFieldValueInput
    Title: ApiEntityConstraintConfiguredFieldValueInput
    This entity represents a ConstraintConfiguredFieldValue object, a unique ConstraintConfiguredFieldValue object can be identified by the following combinations of the fields.
    • constraintUdfValueId
    • columnDefinitionId
    • columnName
    • columnLabel
Nested Schema : taskConstraints
Type: array
List of work manager task constraints.
Show Source
  • ApiEntityTaskConstraintInput
    Title: ApiEntityTaskConstraintInput
    This entity represents a TaskConstraint object, a unique TaskConstraint object can be identified by the following combinations of the fields.
    • taskConstraintId
    • constraintId,workManagerTaskId
Nested Schema : ApiEntityCodeValueConstraintInput
Type: object
Title: ApiEntityCodeValueConstraintInput
This entity represents a CodeValueConstraint object, a unique CodeValueConstraint object can be identified by the following combinations of the fields.
  • codeValueConstraintId
  • codeValueId
  • codeTypeId,codeValueCode
  • codeTypeCode,codeValueCode
  • codeTypeCode,parentId,codeValueCode
  • codeValueCode,codeTypeId,parentId
  • codeTypeCode,codeValueCode,projectCode
  • codeTypeCode,codeValueCode,projectId
  • codeTypeCode,codeValueCode,parentId,projectCode
  • codeTypeCode,codeValueCode,parentId,projectId
Show Source
Nested Schema : ApiEntityConstraintConfiguredFieldValueInput
Type: object
Title: ApiEntityConstraintConfiguredFieldValueInput
This entity represents a ConstraintConfiguredFieldValue object, a unique ConstraintConfiguredFieldValue object can be identified by the following combinations of the fields.
  • constraintUdfValueId
  • columnDefinitionId
  • columnName
  • columnLabel
Show Source
  • Allowed Values: [ "DELETE" ]
    Provide value for this field during object update to delete the assigned configured field value.
  • 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.
  • The unique identifier of a constraint.
  • The system-generated unique identifier of the Constraint Configured Field.
  • Read Only: true
    Deprecated. As of 23.10.
    This holds values for Cost type configured fields in the base currency conversion. Input should be provided in numberValue field, in currency of record.
  • Read Only: true
    Deprecated. As of 23.10.
    This holds values for Cost type configured fields in the workspace1 currency conversion.
  • Read Only: true
    Deprecated. As of 23.10.
    This holds values for Cost type configured fields in the workspace2 currency conversion.
  • Read Only: true
    Deprecated. As of 23.10.
    This holds values for Cost type configured fields in the workspace3 currency conversion.
  • This holds values for Date type configured fields.
  • Read Only: true
    Maximum Length: 4000
    Deprecated. As of 23.10.
    Provides the error message for why the formula calculation resulted in an error.
  • Read Only: true
    Deprecated. As of 23.10.
    Determines if formula calculation hit an error calculating a value for this field.
  • 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.
  • Read Only: true
    Deprecated. As of 23.10.
    Date when the record was last updated.
Nested Schema : ApiEntityTaskConstraintInput
Type: object
Title: ApiEntityTaskConstraintInput
This entity represents a TaskConstraint object, a unique TaskConstraint object can be identified by the following combinations of the fields.
  • taskConstraintId
  • constraintId,workManagerTaskId
Show Source
Examples

Back to Top

Response

Supported Media Types

201 Response

The object was successfully created.
Body ()
Root Schema : List<ApiEntityConstraint>
Type: array
Title: List<ApiEntityConstraint>
Show Source
Nested Schema : ApiEntityConstraint
Type: object
Title: ApiEntityConstraint
Show Source
Nested Schema : codeValues
Type: array
The list of code values for a constraint. This entity can only be used to assign codeValues or create codeValues on the fly.
Show Source
Nested Schema : configuredFields
Type: array
The list of configured fields for a constraint.
Show Source
Nested Schema : taskConstraints
Type: array
List of work manager task constraints.
Show Source
Nested Schema : ApiEntityCodeValueConstraint
Type: object
Title: ApiEntityCodeValueConstraint
Show Source
Nested Schema : ApiEntityConstraintConfiguredFieldValue
Type: object
Title: ApiEntityConstraintConfiguredFieldValue
Show Source
Nested Schema : ApiEntityTaskConstraint
Type: object
Title: ApiEntityTaskConstraint
Show Source

400 Response

Invalid input for the Constraint service.
Back to Top