跳转到内容
EN

List job ladders

Code Mode: praxis.workforce.ladders.list

HTTP: GET /workforce/v1/ladders

Lists the job ladders of your organization, oldest first, each with its levels in ascending order; use it to find the level ids for jobs and positions. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent.

签名

praxis.workforce.ladders.list(args?:{query?:{limit?:number;page?:string}}):Promise<{/** Ladders on this page. */ data:Array<{/** 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}>;/** Whether another page is available after this one. */ has_more:boolean;/** Cursor to pass as page to read the next page; null when no more items remain. */ next_page:string|null}>;

参数

名称位置类型必填说明
limitquerynumber否Maximum items per page, from 1 to 100; defaults to 20.
pagequerystring否Opaque next_page cursor returned by the previous response; omit for the first page.

响应

状态码内容类型说明
200application/jsonOne page of ladders.
400application/problem+jsonINVALID_PARAMS; an unknown query parameter, a limit outside 1 to 100, a bad filter value or a stale page cursor. The message lists the accepted parameters.
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.