Feller-AG / wiser-api

MIT License
12 stars 1 forks source link

Detach a Job from SmartButton #12

Closed grobotka closed 8 months ago

grobotka commented 8 months ago

Hi,

How can I detach a Job from the SmartButton? The PATCH on api/smartbuttons/{id} with { "job": null } or {} does not work.

oliver-joos commented 8 months ago

With the current firmware, it is best to create a special "null Job" without properties and PATCH its "id" into your SmartButton "job".

We will implement a simpler solution in one of the next releases. We will either support a PATCH {"job": null} as you expected, or a DELETE /api/smartbuttons/{id}.

grobotka commented 8 months ago

Thanks, the empty job is exactly what I'm doing now.

oliver-joos commented 8 months ago

Ok! So I'm going to close this issue. Feel free to open it again if you think it's necessary.