Skip to content

Rippling: Create a new draft transition

Rippling restApi.createDraftTransitions: arguments, response, policy and SDK examples.

← Rest API operations · Get started

Operation rippling.rest_api.create_draft_transitions

Provider route: POST /draft-transitions/. Alter supplies the connection’s credentials and routing.

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

import { App } from "@alter-ai/sdk";
import { RipplingIntegration } from "@alter-ai/rippling";
async function execute(input: Parameters<RipplingIntegration["restApi"]["createDraftTransitions"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new RipplingIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.restApi.createDraftTransitions(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_rippling import RipplingIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = RipplingIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.rest_api.create_draft_transitions(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
headersobjectRequired within parentAdditional keys: not allowed
headers.Idempotency-KeystringRequired within parent
bodyModelOptionalExpand Create a new draft transition — request body — body

Referenced models: Create a new draft transition — request body — body

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Create a new draft transition — response body

Referenced models: Create a new draft transition — response body

Create a new draft transition — response body
FieldTypePresenceDescription and constraints
$objectRoot
createdbooleanRequired within parentTrue for a newly accepted request; false for an idempotent replay.
request_idstringRequired within parentRequest identifier to poll with GET /draft-transitions/{id}/.
statusstringRequired within parentCurrent processing state. ACCEPTED is queued; PROCESSING is in progress. COMPLETED, COMPLETED_WITH_WARNINGS, COMPLETED_WITH_ERRORS, and FAILED are terminal states.
Known values: ACCEPTED, PROCESSING, COMPLETED, COMPLETED_WITH_WARNINGS, COMPLETED_WITH_ERRORS, FAILED
submitted_countJSONRequired within parent
submitted_count (anyOf 1)integerAlternativeNumber of items accepted in the original request.
submitted_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Create a new draft transition — request body — body
FieldTypePresenceDescription and constraints
$objectRoot
effective_atstringRequired within parentEffective timestamp applied to the entire draft transition request.
itemsarrayRequired within parentDraft transition items to accept for asynchronous processing. Maximum 500 items per request. Split larger batches into separate requests with distinct Idempotency-Key values.
Maximum items: 500
items[]ModelEach itemExpand Create a new draft transition — request body — body items item
timezonestringRequired within parentIANA timezone used to interpret and display the request's effective timestamp.

Referenced models: Create a new draft transition — request body — body items item

Create a new draft transition — request body — body items item
FieldTypePresenceDescription and constraints
$objectRoot
changesobjectRequired within parentRequested employment changes for this item.
changes.country_specific_infoobjectOptionalCountry-specific field changes supported by current draft transition flows.
changes.employment_infoobjectOptionalEmployment information changes for the target worker.
changes.employment_info.annual_salary_equivalentobjectOptionalNew annual salary equivalent.
changes.employment_info.annual_salary_equivalent.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
changes.employment_info.annual_salary_equivalent.valuenumberOptionalThe decimal amount for the currency.
changes.employment_info.currencystringOptionalNew compensation currency for a currency-only change. When monetary amounts are also supplied, this must match their currency_type. All monetary fields in one item must use the same currency.
changes.employment_info.department_idstringOptionalNew department identifier for the target worker.
changes.employment_info.employment_type_idstringOptionalNew company employment type identifier for the target worker.
changes.employment_info.equity_num_sharesintegerOptionalNew offer letter equity share count.
changes.employment_info.equity_valueobjectOptionalNew offer letter equity value.
changes.employment_info.equity_value.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
changes.employment_info.equity_value.valuenumberOptionalThe decimal amount for the currency.
changes.employment_info.equity_vesting_package_idstringOptionalNew equity vesting package identifier.
changes.employment_info.job_family_idstringOptionalNew job family identifier for the target worker.
changes.employment_info.level_idstringOptionalNew level identifier for the target worker.
changes.employment_info.manager_idstringOptionalNew manager worker identifier, matching the id returned by GET /workers/{id}/.
changes.employment_info.on_target_commissionobjectOptionalNew annual on-target commission amount.
changes.employment_info.on_target_commission.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
changes.employment_info.on_target_commission.valuenumberOptionalThe decimal amount for the currency.
changes.employment_info.relocation_reimbursementobjectOptionalNew relocation reimbursement amount.
changes.employment_info.relocation_reimbursement.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
changes.employment_info.relocation_reimbursement.valuenumberOptionalThe decimal amount for the currency.
changes.employment_info.salary_per_unitobjectOptionalNew compensation amount per salary unit.
changes.employment_info.salary_per_unit.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
changes.employment_info.salary_per_unit.valuenumberOptionalThe decimal amount for the currency.
changes.employment_info.salary_unitstringOptionalNew salary unit.
changes.employment_info.start_datestringOptionalNew start date for the target worker.
changes.employment_info.target_annual_bonusobjectOptionalNew target annual bonus amount.
changes.employment_info.target_annual_bonus.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
changes.employment_info.target_annual_bonus.valuenumberOptionalThe decimal amount for the currency.
changes.employment_info.target_annual_bonus_payment_frequency_unitstringOptionalNew target annual bonus payment frequency.
One of: MONTH, QUARTER, YEAR, SEMI_ANNUAL
changes.employment_info.target_annual_bonus_percentnumberOptionalNew target annual bonus percentage.
changes.employment_info.teams_idsarrayOptionalNew team identifiers for the target worker.
changes.employment_info.teams_ids[]stringEach item
changes.employment_info.titlestringOptionalNew job title for the target worker.
changes.work_location_infoobjectOptionalWork location changes for the target worker.
changes.work_location_info.country_codestringOptionalNew work country code for the target worker.
changes.work_location_info.location_idstringOptionalNew work location identifier for the target worker.
draft_grouping_preferencestringOptionalControls whether this item should append to a compatible existing draft or create a new draft.
One of: APPEND_TO_MATCHING_DRAFT, CREATE_NEW_DRAFT
worker_idstringRequired within parentTarget worker identifier, matching the id returned by GET /workers/{id}/.

SDK function policy ID: rippling.rest_api.create_draft_transitions. Catalog operation: create-draft-transitions. 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: ["draft-transitions.read-write"]

Provider entitlements: ["API_Tier_1", "Draft_Transitions_API"]

Pinned headers: {"Rippling-Api-Version": "2024-08-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.