CostingCodeInsertRequest
PUT {{base_url}}/CostingCodeInsertRequest
Creates a new costing code.
API
Costing Code API
Requires Authentication
Yes (Advanced)
Returns
CostingCode
Batch?
No
Request Body
[{"name"=>"Code", "value"=>"{{string}}", "datatype"=>"string"}, {"name"=>"Description", "value"=>"{{string}}", "datatype"=>"string"}, {"name"=>"Active", "value"=>"{{boolean}}", "datatype"=>"string"}, {"name"=>"Level", "value"=>"{{integer}}", "datatype"=>"string"}, {"name"=>"AllowTaskUse", "value"=>"{{boolean}}", "datatype"=>"string"}, {"name"=>"ParentId", "value"=>"{{integer}}", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | Required. | |
The type of content accepted by the API endpoint. | |||
Content-Type | string | Required. | |
The type of content supported by the API endpoint. |
RESPONSES
status: OK
{"Id":1119,"Code":"TestCode 2","Description":"TestCode 2 Description","Active":true,"Level":2,"ParentId":4,"AllowTimeEntry":false,"AllowVendorCost":false,"AllowPersonalExpense":false,"AllowMaterialEntry":false,"AllowMileageEntry":false,"UpdateEmployeeId":35879,"UpdateDate":"2021-07-23T00:00:00.000Z"}