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.
签名
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}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| id | path | string | 是 | Ladder id (ldr_…), from the ladders list or the response of define. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The ladder. |
| 401 | Missing or invalid credential; provide a valid organization API key or sign in to the Console. | |
| 403 | application/problem+json | PERMISSION_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. |
| 404 | application/problem+json | LADDER_NOT_FOUND; list ladders and copy an id of your organization. |