Timesheets

Restore timesheet

POST restore timesheet

Endpoint

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

Request

Route

PUT /api/v1/timesheets/194/restore

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjE3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg4LCJleHAiOjE3NDAxNDM1ODgsImp0aSI6IjNiYzk1OTI2LTEwNzktNDhmZC04N2YzLWYzN2VjMmMxZDYwMiJ9.ztNFo1etxJ5UmA1rGqPYO3WspK3c3hSwxdEEuUPJfmc
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/"3f7393dfe539255adac0d4a109a0f0d6"
cache-control: max-age=0, private, must-revalidate
x-request-id: e5386849-d4be-4ef3-9819-2ab9e5d2a3c3
x-runtime: 0.009447
content-length: 136

Body

{
  "timesheet": {
    "id": 194,
    "date": "2025-01-22",
    "job_title": "Dynamic Manufacturing Strategist",
    "payment_state": "pending",
    "status": "pending"
  }
}