Timesheets

Restore timesheet

POST restore timesheet

Endpoint

PUT /api/v1/timesheets/:id/restore

Request

Route

PUT /api/v1/timesheets/205/restore

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjcyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTM1LCJleHAiOjE3NTExMDg1MzUsImp0aSI6IjhlMzc1NTU1LTU4NTAtNDhmZi1hMTQyLWMzN2EyNjliMWU0MCJ9.QZ_Hf6NSZfU3CVtzEQjAi_bIyUV-icKGAhtDkEa0ftQ
Host: example.org
Cookie: 

Body

{
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"9e68ae5bbbb854de2e437c2fab878d2d"
cache-control: max-age=0, private, must-revalidate
x-request-id: 26cfc608-e8f9-470f-b611-88f7df997d79
x-runtime: 0.009366
content-length: 126

Body

{
  "timesheet": {
    "id": 205,
    "date": "2025-05-29",
    "job_title": "Global Sales Architect",
    "payment_state": "pending",
    "status": "pending"
  }
}