module WolfCore::Burnett::PositionsOperations

def update_position!(erecruit_token:, erecruit_platform_url:, position_id:, position:, error_message:)

def update_position!(erecruit_token:, erecruit_platform_url:, position_id:, position:, error_message:)
  response = safe_http_put(
    headers: { "Authorization" => "Bearer #{erecruit_token}" },
    url: "#{erecruit_platform_url}/Position/#{position_id}",
    body: position,
    error_message: error_message
  )
  response.body
end