Skip to content

Commit

Permalink
docs(sensor): adds comment that only admins can patch sensors
Browse files Browse the repository at this point in the history
Signed-off-by: GustaafL <guus@seita.nl>
  • Loading branch information
GustaafL committed Aug 7, 2023
1 parent 527c43e commit 59c0d3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flexmeasures/api/v3_0/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ def patch(self, sensor_data: dict, id: int, sensor: Sensor):
This endpoint sets data for an existing sensor.
Any subset of sensor fields can be sent.
Only admin users have rights to update the sensor fields.
The following fields are not allowed to be updated:
- id
Expand Down

0 comments on commit 59c0d3b

Please sign in to comment.