Batch Update Curves
put
/primeapi/restapi/curve/batch
Send a request to this endpoint to update one or more curves. 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
Supported Media Types
- application/json
Curves to be updated.
Nested Schema : ApiEntityCurve
Type:
Show Source
object
-
buckets(optional):
array buckets
Unique Items Required:
true
The buckets of a cost curve. -
curveId:
integer(int64)
The unique identifier of a curve.
-
curveName:
string
The name of the curve profile.
-
link(optional):
string(url)
Read Only:
true
-
pushDownType(optional):
string
Allowed Values:
[ "MANUAL", "AUTOMATIC" ]
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. -
updateDate(optional):
string(date-time)
Read Only:
true
Date when the record was last updated. Used for viewing and filtering records, obtained ONLY from GET calls, modified on and after a particular date. Not a part of POST response. -
workspaceId:
integer(int64)
The unique identifier of a workspace.
Nested Schema : buckets
Type:
array
Unique Items Required:
true
The buckets of a cost curve.
Show Source
Nested Schema : ApiEntityCurveBucket
Type:
Show Source
object
-
bucketLevel(optional):
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.
-
link(optional):
string(url)
Read Only:
true
-
uniqueName(optional):
string
-
updateDate(optional):
string(date-time)
Read Only:
true
Date when the record was last updated. Used for viewing and filtering records, obtained ONLY from GET calls, modified on and after a particular date. Not a part of POST response. -
value(optional):
number
Numeric value of a bucket curve. Curve bucket values determine the shape of curves.
Response
Supported Media Types
- application/json
200 Response
A collection of object IDs mapped to a canonical link of the object. For example - {"links":{"1":"https://:/primeapi/restapi/
400 Response
Invalid input for the Curve service. Verify the request contains valid data, then resubmit the request.