xpack.license.postStartTrial

edit
client.xpack.license.postStartTrial({
  type: string,
  acknowledge: boolean
})

Reference

type

string - The type of trial license to generate (default: "trial")

acknowledge

boolean - whether the user has acknowledged acknowledge messages (default: false)