Time & Attendance
Timesheets

Approve timesheet

Approves the given timesheet.

Contractor timesheets can't be approved through the API and are rejected with 422.

Authentication

This endpoint accepts any one of the following token types:

  • Company-scoped access token (OAuth2AuthorizationCode) — obtained through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
  • Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page. See Authorization for customers.

Scopes

CategoryRead only ScopeWrite only Scope (read access implicit)
Manage timeoffs (time_and_attendance)-Manage timesheets (timesheet:write)
post/v1/timesheets/{timesheet_id}/approve

Request

  • Base URL: https://gateway.remote.com
  • URL: https://gateway.remote.com/v1/timesheets/{timesheet_id}/approve
  • Auth: HTTP bearer and OAuth 2 (authorization code, authorization URL /auth/oauth2/authorize, token URL /auth/oauth2/token, scopes: https://gateway.remote.com/company.manage, timesheet:write, time_and_attendance, all:write)

Path parameters

timesheet_idstring required

Timesheet ID

Response

Success

Example response

{
  "data": {
    "timesheet": {
      "approval_required": true,
      "country_code": "PRT",
      "employment_id": "663e0b79-c893-45ff-a1b2-f6dcabc098b5",
      "end_date": "2021-07-01",
      "id": "663e0b79-c893-45ff-a1b2-f6dcabc098b5",
      "notes": "Some notes",
      "start_date": "2021-07-01",
      "status": "submitted",
      "submitted_at": "2021-07-15T18:18:17Z"
    }
  }
}

Changes

No recorded changes to this operation across all 65 revisions of this API.