Rippling: Retrieve a specific draft transition
Rippling restApi.getDraftTransitions: arguments, response, policy and SDK examples.
← Rest API operations · Get started
Operation rippling.rest_api.get_draft_transitions
Provider route: GET /draft-transitions/{id}/. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”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"]["getDraftTransitions"]>[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.getDraftTransitions(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom 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.get_draft_transitions(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.id | string | Required within parent | Format: id |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Retrieve a specific draft transition — response body |
Referenced models: Retrieve a specific draft transition — response body
Schemas
Section titled “Schemas”Retrieve a specific draft transition — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
completed_count | JSON | Required within parent | |
completed_count (anyOf 1) | integer | Alternative | Number of completed items, including items completed with warnings. |
completed_count (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
failed_count | JSON | Required within parent | |
failed_count (anyOf 1) | integer | Alternative | Number of failed items. |
failed_count (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
failed_items | array | Required within parent | Details for failed items; empty when none have failed. |
failed_items[] | Model | Each item | Expand Retrieve a specific draft transition — response body — failed items item |
request_id | string | Required within parent | Identifier of the submitted draft transition request. |
status | string | Required within parent | Current processing state. Continue polling while ACCEPTED or PROCESSING. 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_count | JSON | Required within parent | |
submitted_count (anyOf 1) | integer | Alternative | Total number of items accepted in the original request. |
submitted_count (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
warning_count | JSON | Required within parent | |
warning_count (anyOf 1) | integer | Alternative | Number of items completed with warnings; these are also included in completed_count. |
warning_count (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
warning_items | array | Required within parent | Details for items completed with warnings; empty when none have warnings. |
warning_items[] | Model | Each item | Expand Retrieve a specific draft transition — response body — warning items item |
Referenced models: Retrieve a specific draft transition — response body — failed items item, Retrieve a specific draft transition — response body — warning items item
Retrieve a specific draft transition — response body — failed items item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Required within parent | Errors explaining why this item failed. |
errors[] | Model | Each item | Expand Retrieve a specific draft transition — response body — failed items item errors item |
index | JSON | Required within parent | |
index (anyOf 1) | integer | Alternative | Zero-based index of this item in the submitted items array. |
index (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
status | string | Required within parent | Item processing state; failed items have FAILED status. Known values: ACCEPTED, PROCESSING, COMPLETED, COMPLETED_WITH_WARNINGS, FAILED |
worker_id | string | Required within parent | Target worker identifier, matching the id returned by GET /workers/{id}/. |
Referenced models: Retrieve a specific draft transition — response body — failed items item errors item
Retrieve a specific draft transition — response body — warning items item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
index | JSON | Required within parent | |
index (anyOf 1) | integer | Alternative | Zero-based index of this item in the submitted items array. |
index (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
status | string | Required within parent | Item processing state; warning items have COMPLETED_WITH_WARNINGS status. Known values: ACCEPTED, PROCESSING, COMPLETED, COMPLETED_WITH_WARNINGS, FAILED |
warnings | array | Required within parent | Warnings associated with this completed item. Review the draft before applying it. |
warnings[] | Model | Each item | Expand Retrieve a specific draft transition — response body — failed items item errors item |
worker_id | string | Required within parent | Target worker identifier, matching the id returned by GET /workers/{id}/. |
Referenced models: Retrieve a specific draft transition — response body — failed items item errors item
Retrieve a specific draft transition — response body — failed items item errors item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
code | string | Required within parent | Machine-readable warning or error code. |
field_path | JSON | Optional | |
field_path (anyOf 1) | string | Alternative | Path to the affected request field, when available. |
field_path (anyOf 2) | null | Alternative | |
message | string | Required within parent | Explanation of the issue and, when applicable, how to correct it. |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: rippling.rest_api.get_draft_transitions. Catalog operation: get-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"]
Provider entitlements: ["API_Tier_1", "Draft_Transitions_API"]
Pinned headers: {"Rippling-Api-Version": "2024-08-01"}