Batch Create Units of Measures
post
/api/restapi/unitsOfMeasure/batch
Send a request to this endpoint to create one or more units of measure.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : List<ApiEntityUnitsOfMeasureInput>
Type:
array
Title:
Show Source
List<ApiEntityUnitsOfMeasureInput>
-
Array of:
object ApiEntityUnitsOfMeasureInput
Title:
ApiEntityUnitsOfMeasureInput
This entity represents a UnitsOfMeasure object, a unique UnitsOfMeasure object can be identified by the following combinations of the fields.- unitOfMeasureId
- key,workspaceId
- key,workspaceCode
Nested Schema : ApiEntityUnitsOfMeasureInput
Type:
object
Title:
ApiEntityUnitsOfMeasureInput
This entity represents a UnitsOfMeasure object, a unique UnitsOfMeasure object can be identified by the following combinations of the fields.
Show Source
- unitOfMeasureId
- key,workspaceId
- key,workspaceCode
-
associationType: stringRead Only:true
Allowed Values:[ "OWNED", "INHERITED" ]
Deprecated. As of 24.5.The type of association in the relationship between the units of measure and the workspace. Possible values are Owned and Inherited. -
displayName(required): string
Minimum Length:
0
Maximum Length:255
The name of the unit of measure. -
key(required): string
Minimum Length:
0
Maximum Length:60
The abbreviation for the unit of measure name. -
link: string(url)Read Only:true
Deprecated. As of 24.5.The self-link to the object. This field is populated only in the responses generated by the batch create APIs. -
pushDownType: string
Allowed Values:
[ "MANUAL", "AUTOMATIC" ]
The push down type of the unit of measure. -
unitOfMeasureId: integer
(int64)
The unique identifier for the unit of measure.
-
updateDate: string(date-time)Read Only:true
Deprecated. As of 24.5.Date when the record was last updated. -
workspaceCode: string
Minimum Length:
0
Maximum Length:60
The code of a workspace. -
workspaceId(required): integer
(int64)
The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
Examples
Back to Top
Response
Supported Media Types
- application/json
201 Response
The object was successfully created.
Root Schema : List<ApiEntityUnitsOfMeasure>
Type:
array
Title:
Show Source
List<ApiEntityUnitsOfMeasure>
-
Array of:
object ApiEntityUnitsOfMeasure
Title:
ApiEntityUnitsOfMeasure
This entity represents a UnitsOfMeasure object, a unique UnitsOfMeasure object can be identified by the following combinations of the fields.- unitOfMeasureId
- key,workspaceId
- key,workspaceCode
Nested Schema : ApiEntityUnitsOfMeasure
Type:
object
Title:
ApiEntityUnitsOfMeasure
This entity represents a UnitsOfMeasure object, a unique UnitsOfMeasure object can be identified by the following combinations of the fields.
Show Source
- unitOfMeasureId
- key,workspaceId
- key,workspaceCode
-
associationType: string
Allowed Values:
[ "OWNED", "INHERITED" ]
The type of association in the relationship between the units of measure and the workspace. Possible values are Owned and Inherited. -
displayName: string
Minimum Length:
0
Maximum Length:255
The name of the unit of measure. -
key: string
Minimum Length:
0
Maximum Length:60
The abbreviation for the unit of measure name. -
link: string
(url)
The self-link to the object. This field is populated only in the responses generated by the batch create APIs.
-
pushDownType: string
Allowed Values:
[ "MANUAL", "AUTOMATIC" ]
The push down type of the unit of measure. -
unitOfMeasureId: integer
(int64)
The unique identifier for the unit of measure.
-
updateDate: string
(date-time)
Date when the record was last updated.
-
workspaceCode: string
Minimum Length:
0
Maximum Length:60
The code of a workspace. -
workspaceId: integer
(int64)
The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
400 Response
Invalid input for the Units of Measure service.