Skip to content
中文

Get a job ladder

Code Mode: praxis.workforce.ladders.retrieve

HTTP: GET /workforce/v1/ladders/{id}

Reads one job ladder with its levels in ascending order. Read-only. Errors: 404 LADDER_NOT_FOUND when the id is not a ladder of your organization; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent.

Signature

praxis.workforce.ladders.retrieve(args:{path:{id:string}}):Promise<{/** Ladder id (ldr_...). */ id:string;/** Id of the organization that owns the ladder. */ organization_id:string;/** Ladder name, 1 to 100 characters. */ name:string;/** Levels of the ladder in ascending order. */ levels:Array<{/** Job level id (lvl_...); use it as job_level_id and in a job's level_ids. */ id:string;/** Id of the ladder (ldr_...) the level belongs to. */ ladder_id:string;/** Level name, 1 to 100 characters, such as Senior. */ name:string;/** Rank inside the ladder; unique per ladder, and levels are returned in ascending order. */ order:number}>;/** UTC instant (RFC 3339) when the ladder was defined. */ create_time:string;/** UTC instant (RFC 3339) of the latest change to the ladder. */ update_time:string}>;

Parameters

NameInTypeRequiredDescription
idpathstringyesLadder id (ldr_…), from the ladders list or the response of define.

Responses

StatusContent typesDescription
200application/jsonThe ladder.
401Missing or invalid credential; provide a valid organization API key or sign in to the Console.
403application/problem+jsonPERMISSION_DENIED; an agent’s session token reads its own organization, but a run or computer token, or a session token that names no agent, is refused; call with an organization API key, a Console session, or the agent’s own session token.
404application/problem+jsonLADDER_NOT_FOUND; list ladders and copy an id of your organization.