Skip to content

Deel: Get Hourly Report Root Preset by ID

Deel projects.getHourlyReportRootPresetById: arguments, response, policy and SDK examples.

← Projects operations · Get started

Operation deel.projects_gethourlyreportrootpresetbyid_v2026_01_01

Provider route: GET /timesheets/root-presets/{root_preset_id}. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/deel with npm, or alter-sdk-deel with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { DeelIntegration } from "@alter-ai/deel";
async function execute(input: Parameters<DeelIntegration["projects"]["getHourlyReportRootPresetById"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new DeelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.projects.getHourlyReportRootPresetById(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_deel import DeelIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = DeelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.projects.get_hourly_report_root_preset_by_id(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.root_preset_idstringRequired within parentFormat: uuid

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Get Hourly Report Root Preset by ID — 200 response body

Referenced models: Get Hourly Report Root Preset by ID — 200 response body

Get Hourly Report Root Preset by ID — 200 response body
FieldTypePresenceDescription and constraints
$objectRoot
dataModelRequired within parentExpand Get Hourly Report Root Preset by ID — 200 response body — data
Hourly report root preset details.

Referenced models: Get Hourly Report Root Preset by ID — 200 response body — data

Get Hourly Report Root Preset by ID — 200 response body — data
FieldTypePresenceDescription and constraints
$objectRootHourly report root preset details.
descriptionstringRequired within parentDetailed description of the hourly report root preset's purpose and contents
fileJSONOptionalFile attached to this hourly report root preset, if any.
file (anyOf 1)ModelAlternativeExpand Get Hourly Report Root Preset by ID — 200 response body — data file id, name, type
file (anyOf 2)nullAlternative
idstringRequired within parentThe unique identifier of the hourly report root preset
Format: uuid
statusstringRequired within parentThe current status of the hourly report root preset
titlestringRequired within parentThe title of the hourly report root preset
typestringOptionalThe type of preset, RATE – indicates a preset that overrides the default contract rate, TRACKING - used exclusively for tracking, applying the default contract rate
Known values: RATE, TRACKING

Referenced models: Get Hourly Report Root Preset by ID — 200 response body — data file id, name, type

Get Hourly Report Root Preset by ID — 200 response body — data file id, name, type
FieldTypePresenceDescription and constraints
$objectRootFile attached to this hourly report root preset, if any.
idstringOptionalThe unique identifier of the file
namestringOptionalThe name of the file
typestringOptionalThe type of the file

SDK function policy ID: deel.projects_gethourlyreportrootpresetbyid_v2026_01_01. Catalog operation: projects_gethourlyreportrootpresetbyid_v2026_01_01. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["timesheets:read"]

Pinned headers: {"X-Version": "2026-01-01"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.