module WolfCore::Burnett::Onboarding::CandidateOperations

def create_candidate!(erecruit_token:, erecruit_platform_url:, candidate:, error_message:, error_data: nil)

def create_candidate!(erecruit_token:, erecruit_platform_url:, candidate:, error_message:, error_data: nil)
  response = safe_http_post(
    headers: { "Authorization" => "Bearer #{erecruit_token}" },
    url: "#{erecruit_platform_url}/Candidate",
    body: candidate,
    error_message: error_message,
    error_data: error_data
  )
  response.body
end