Skip to main content
POST
/
hours
/
status-change
Change status
curl --request POST \
  --url https://api.projectcor.com/v1/hours/status-change \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "pending",
  "counters": [
    123
  ]
}
'

Authorizations

Authorization
string
header
required

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

Body

application/json
status
enum<string>
required

Hour status

Available options:
pending,
approved,
discarded,
under_review,
invoiced,
paid
counters
integer[]
required

Array of counter IDs

Response

200

Status changed successfully