Skip to main content
POST
/
projects
/
{project_id}
/
project_cost
Add Project Cost
curl --request POST \
  --url https://api.projectcor.com/v1/projects/{project_id}/project_cost \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "cost": 123,
  "datetime": "2023-12-25",
  "label_id": 123,
  "project_estimate_id": 123,
  "id_project_history": 123
}
'
{
  "id": 123,
  "title": "<string>",
  "cost": 123,
  "datetime": "2023-12-25",
  "label_id": 123,
  "project_estimate_id": 123,
  "id_project_history": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
integer
required

Body

application/json
title
string
required

Title of cost

cost
number<float>
required

Cost

datetime
string<date>
required

Date of the estimate

label_id
integer

Related Label

project_estimate_id
integer

Related project estimate

id_project_history
integer

Related project history

Response

200 - application/json

Project cost created successfully

id
integer
title
string
cost
number<float>
datetime
string<date>
label_id
integer
project_estimate_id
integer
id_project_history
integer