Create new Gas Valve
  • 17 Jan 2024
  • 2 Minutes to read
  • Contributors
  • Dark
    Light
  • PDF

Create new Gas Valve

  • Dark
    Light
  • PDF

Article summary

Post
/gas-valve/
Security
API Key
Header parameter nameAuthorization

Token issued for API consumer.

Body parameters

Gas Valve to be created

Gas valve object. Flat version for patch and post methods

Plan
integer

Plan id

angle
string (float)

Point rotation

build_year
integer

Build year

condition_class_id
integer

Keygas manhole condition class id

created_by
string

Username of the user created the node

created_ts
string (date)

Date created

feature
string Required

Feature

h_accuracy_id
integer

Height accuracy id

history_date
string (date)

History date

identification
string

Identification

install_year
integer

Install year

lbl_angle_exp
string

Export label angle

lbl_color_exp
string

Export label color

lbl_size_exp
string

Export label size

lid_type
integer

Keygas Lid type id

location
string (ewkt)

Geographical location

location_accuracy
integer

Location accuracy id

manhole
integer

Keygas manhole type id

manhole_type_id
integer

Manhole type id

mapper
string

Mapper

mapping_method
integer

Mapping method id

model_id
integer Required

Keygas valve model id

mslink
integer

Primary key

node_type
string Required

Node type

note
string

Additional details

open_state
integer

Keygas valve open state id

owner_id
integer Required

Owner Id

plan_date
string (date)

Plan date

plan_number
string

Plan number

removal_year
integer

Removal year

scale
string (float)

Point scale

state_id
integer Required

Keygas node usage state id

survey_amaunt
integer

Survey amount

sym_angle_exp
string

Export symbol angle

sym_code_gt
string

Symbol code

sym_color_exp
string

Export symbol color

sym_name_exp
string

Export symbol name

sym_size_exp
string

Export symbol size

sym_text_exp
string

Export symbol text

sym_width_exp
string

Export symbol width

t_area_id
integer

Keygas division id

updated_by
string

Username of the user updated the node

updated_ts
string (date)

Date updated

valve
integer

Keygas Valve id

valve_type
integer Required

Gas valve type id

z_coord1
string (float)

Lid elevation

z_coord2
string (float)

Bottom elevation

Responses
201

A created Gas Valve

{
  "build_year": [
    "1999"
  ],
  "feature": [
    "1234"
  ],
  "identification": [
    "test"
  ],
  "install_year": [
    "2000"
  ],
  "model_id": [
    "912156"
  ],
  "mslink": [
    "12345"
  ],
  "node_type": [
    "Valve"
  ],
  "note": [
    "This is a test"
  ],
  "owner_id": [
    "85165"
  ],
  "removal_year": [
    "2020"
  ],
  "state_id": [
    "84125"
  ],
  "valve_type": [
    "3"
  ]
}

Gas valve object. Flat version for patch and post methods

Plan
integer

Plan id

angle
string (float)

Point rotation

build_year
integer

Build year

condition_class_id
integer

Keygas manhole condition class id

created_by
string

Username of the user created the node

created_ts
string (date)

Date created

feature
string

Feature

h_accuracy_id
integer

Height accuracy id

history_date
string (date)

History date

identification
string

Identification

install_year
integer

Install year

lbl_angle_exp
string

Export label angle

lbl_color_exp
string

Export label color

lbl_size_exp
string

Export label size

lid_type
integer

Keygas Lid type id

location
string (ewkt)

Geographical location

location_accuracy
integer

Location accuracy id

manhole
integer

Keygas manhole type id

manhole_type_id
integer

Manhole type id

mapper
string

Mapper

mapping_method
integer

Mapping method id

model_id
integer

Keygas valve model id

mslink
integer

Primary key

node_type
string

Node type

note
string

Additional details

open_state
integer

Keygas valve open state id

owner_id
integer

Owner Id

plan_date
string (date)

Plan date

plan_number
string

Plan number

removal_year
integer

Removal year

scale
string (float)

Point scale

state_id
integer

Keygas node usage state id

survey_amaunt
integer

Survey amount

sym_angle_exp
string

Export symbol angle

sym_code_gt
string

Symbol code

sym_color_exp
string

Export symbol color

sym_name_exp
string

Export symbol name

sym_size_exp
string

Export symbol size

sym_text_exp
string

Export symbol text

sym_width_exp
string

Export symbol width

t_area_id
integer

Keygas division id

updated_by
string

Username of the user updated the node

updated_ts
string (date)

Date updated

valve
integer

Keygas Valve id

valve_type
integer

Gas valve type id

z_coord1
string (float)

Lid elevation

z_coord2
string (float)

Bottom elevation

400

There was an error in request. Usually field validation failed.

{
  "feature": [
    "This field is required."
  ],
  "model_id": [
    "This field is required."
  ],
  "node_type": [
    "This field is required."
  ],
  "owner_id": [
    "This field is required."
  ],
  "state_id": [
    "This field is required."
  ],
  "valve_type": [
    "This field is required."
  ]
}

Fields which failed validation

401

Authentication credentials are missing or invalid

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

Detailed description of error


Was this article helpful?