How to set and get tool temperature using REST API

Hello

I want to set and get tool temperature using REST API

Can I do it
I tried to read all Octoprint API but I did not find the solution and I hope I did not read it correctly

Thank you

From here, it looks like the way to do that would be to send the following to get the temperature of the tools:

Send:

GET /api/printer/tool HTTP/1.1
Host: example.com
X-Api-Key: abcdef...

Returns:

HTTP/1.1 200 OK
Content-Type: application/json

{
  "tool0": {
    "actual": 214.8821,
    "target": 220.0,
    "offset": 0
  },
  "tool1": {
    "actual": 25.3,
    "target": null,
    "offset": 0
  }
}

How you do this would depend upon the software language that you're trying to use.

1 Like

Is there any way to set target temperature ?

Did you read the linked page? It's right there.

Tell me what programming language you're using and I could give a practical example.