Update Water Pumping Station data partially
  • 17 Jan 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Update Water Pumping Station data partially

  • Dark
    Light
  • PDF

Article summary

Patch
/water-pumping-station/{id}/

Operation is used to update specific fields in existing Water Pumping Station data.

Security
API Key
Header parameter nameAuthorization

Token issued for API consumer.

Path parameters
id
integerRequired

Id of Water Pumping Station to update

Body parameters

Water Pumping Station attributes and values to be updated

object
id
integer

Primary key

name
string

Water Pumping Station name

node
integer Required

Water Node Id

pressure_increase
string

Water Pumping Station pressure increase

productivity
string

Water Pumping Station productivity

role_id
integer Required

SnConstant with group name PUMP_STATION_ROLE

type_id
integer Required

SnConstant with group name PUMPSTATION_TYPE

Responses
200

Object was updated successfully

{
  "id": [
    "123"
  ],
  "name": [
    "test_name_updated"
  ],
  "node": [
    "1234"
  ],
  "pressure_increase": [
    "123"
  ],
  "productivity": [
    "productivity"
  ]
}
object
id
integer

Primary key

name
string

Water Pumping Station name

node
integer

Water Node Id

pressure_increase
string

Water Pumping Station pressure increase

productivity
string

Water Pumping Station productivity

role_id
integer

SnConstant with group name PUMP_STATION_ROLE

type_id
integer

SnConstant with group name PUMPSTATION_TYPE

401

Authentication credentials are missing or invalid

{
  "details": "Authentication credentials were not provided"
}
object
details
string

Detailed description of error

404

Object was not found

{
  "details": "Not found."
}
object
details
string

Detailed description of error


Was this article helpful?