Retrieve Stage Changes

recruitment/list-stage-changes@1.0.0
14 providers

List Stage Changes

Retrieves a list of stages for specific candidate or lead throughout the recruitment process

Input
Candidate Id
Job Id
Result
Stages
Rate limit

1.Choose a provider

2.Use ListStageChanges with mock in your code

npm i @superfaceai/one-sdk
const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the profile
  const profile = await sdk.getProfile('recruitment/list-stage-changes@1.0.0');

  // Use the profile
  const result = await profile
    .getUseCase('ListStageChanges')
    .perform({
      candidateId: 'CANDIDATE_ID'
    }, {
      provider: 'mock'
    });

  // Handle the result
  try {
    const data = result.unwrap();
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

run();

Structure details

Input (object)

candidateId
Unique identifier of a candidate or sourced lead.
jobId
The unique identifier of a job that the candidate is linked with.

Example

{
  "candidateId": "CANDIDATE_ID"
}

Result (object)

changes
List of stages relevant to the candidate or lead.
rateLimit
Rate limit details.

Example

{
  "changes": [
    {
      "id": "1",
      "stageId": "sourced",
      "name": "Sourced",
      "description": "Sourced from LinkedIn",
      "current": false,
      "createdAt": "2022-12-06T15:20:11Z"
    }
  ]
}

Implementation details

Provider
mock
Use case
ListStageChanges
Author
@superface
Source
Verified