Batch Create Cost Categories
post
/primeapi/restapi/costCategory/batch
Send a request to this endpoint to create one or more cost categories. An application object will be created for each JSON object provided in the request body.
Request
Supported Media Types
- application/json
Cost Category to be created.
Root Schema : List<ApiEntityCostCategory>
Type:
arrayTitle:
Show Source
List<ApiEntityCostCategory>Nested Schema : ApiEntityCostCategory
Type:
Show Source
object-
abbreviation(optional):
string
Allowed Values:
[ "Length[1-10]" ] -
costCategoryId:
integer(int64)
-
costCategoryName(optional):
string
Allowed Values:
[ "Length[1-255]" ] -
link(optional):
string(url)
Read Only:
true -
pushDownType(optional):
string
Allowed Values:
[ "MANUAL", "AUTOMATIC" ]Specifies how a workspace calendar is shared across child workspaces. -
type(optional):
string
Allowed Values:
[ "LABOR", "EQUIPMENT", "MATERIALS", "OTHER" ] -
updateDate(optional):
string(date-time)
Read Only:
trueDate 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(optional):
integer(int64)
Response
Supported Media Types
- application/json
201 Response
The object was successfully created.
Nested Schema : ApiEntityCostCategory
Type:
Show Source
object-
abbreviation(optional):
string
Allowed Values:
[ "Length[1-10]" ] -
costCategoryId:
integer(int64)
-
costCategoryName(optional):
string
Allowed Values:
[ "Length[1-255]" ] -
link(optional):
string(url)
Read Only:
true -
pushDownType(optional):
string
Allowed Values:
[ "MANUAL", "AUTOMATIC" ]Specifies how a workspace calendar is shared across child workspaces. -
type(optional):
string
Allowed Values:
[ "LABOR", "EQUIPMENT", "MATERIALS", "OTHER" ] -
updateDate(optional):
string(date-time)
Read Only:
trueDate 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(optional):
integer(int64)
400 Response
Invalid input for the Cost Category service. Verify the request contains valid data, then resubmit the request.