-
Notifications
You must be signed in to change notification settings - Fork 3
Machine Interaction APIs (i.e. spawning/reset machines) #6
Copy link
Copy link
Open
Description
Hello, I was giving a look to your docs listing all the API and I noted that all of them are exclusively get functions.
I was also reading this other documentation https://pyhackthebox.readthedocs.io/en/latest/ , in particular https://pyhackthebox.readthedocs.io/en/latest/_modules/hackthebox/machine.html#Machine.spawn where, inside the spawn function, there is the following call: self._client.do_request("vm/spawn", json_data={"machine_id": self.id}) so it should mean there exist also API v4 for spawning machines, is it correct? If so. I'm trying to use commands like this
curl --location --request POST 'https://www.hackthebox.com/api/v4/vm/spawn' -d '{"machine_id":2120}' -H "$api"
but with no success. The further doc I posted should refer to v4 API.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels