Create new Keygas Duct
  • 17 Jan 2024
  • 2 Minutes to read
  • Contributors
  • Dark
    Light
  • PDF

Create new Keygas Duct

  • Dark
    Light
  • PDF

Article summary

Post
/keygas-duct/
Security
API Key
Header parameter nameAuthorization

Token issued for API consumer.

Body parameters

Keygas Duct to be created

object
Plan
integer

Plan id

accuracy_id
integer

TxtConstant with group name LOCATION_ACCURACY

begin_node_id
integer

Start node id

begin_z_coord
string (float)

Start z coordinate

build_year
integer

Build year

created_by
string

Name of the user created the cable

created_ts
string (date-time)

Date created

duct_type
integer

Duct type id

end_node_id
integer

End node id

end_z_coord
string (float)

End z coordinate

feature
string

feature

h_accuracy_id
integer

TxtConstant with group name H_ACCURACY

history_date
string (date)

History date

identification
string

Identification

lbl_angle_exp
string

Export label angle

lbl_color_exp
string

Export label color

lbl_size_exp
string

Export size color

length
number (float)

Cable length

location
string (ewkt)

Geographical location

location_accuracy
integer

TxtConstant with group name LOCATION_ACCURACY

location_id
integer Required

SnConstant with group name DUCT_LOCATION

mapper
string

Mapper

mapping_method_id
integer

TxtConstant with group name MAPPING_METHOD

mslink
integer

Primary key

note
string

Additional details

owner_id
integer Required

SnConstant with group name DUCT_OWNER

plan_number
string

Plan number

removal_date
string (date)

Removal date

state_id
integer Required

SnConstant with group name DUCT_STATE

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_text_exp
string

Export symbol text

sym_width_exp
string

Export symbol width

t_area_id
integer

Gas division id

type
integer

Keygas duct type id

updated_by
string

Name of the user updated the cable

updated_ts
string (date-time)

Date updated

user_id
string

User ID

Responses
201

A newly created Keygas Duct

{
  "identification": [
    "test"
  ],
  "mslink": [
    "123456"
  ],
  "note": [
    "this is a test"
  ],
  "owner_id": [
    "8740"
  ],
  "state_id": [
    "5361"
  ]
}
object
Plan
integer

Plan id

accuracy_id
integer

TxtConstant with group name LOCATION_ACCURACY

begin_node_id
integer

Start node id

begin_z_coord
string (float)

Start z coordinate

build_year
integer

Build year

created_by
string

Name of the user created the cable

created_ts
string (date-time)

Date created

duct_type
integer

Duct type id

end_node_id
integer

End node id

end_z_coord
string (float)

End z coordinate

feature
string

feature

h_accuracy_id
integer

TxtConstant with group name H_ACCURACY

history_date
string (date)

History date

identification
string

Identification

lbl_angle_exp
string

Export label angle

lbl_color_exp
string

Export label color

lbl_size_exp
string

Export size color

length
number (float)

Cable length

location
string (ewkt)

Geographical location

location_accuracy
integer

TxtConstant with group name LOCATION_ACCURACY

location_id
integer

SnConstant with group name DUCT_LOCATION

mapper
string

Mapper

mapping_method_id
integer

TxtConstant with group name MAPPING_METHOD

mslink
integer

Primary key

note
string

Additional details

owner_id
integer

SnConstant with group name DUCT_OWNER

plan_number
string

Plan number

removal_date
string (date)

Removal date

state_id
integer

SnConstant with group name DUCT_STATE

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_text_exp
string

Export symbol text

sym_width_exp
string

Export symbol width

t_area_id
integer

Gas division id

type
integer

Keygas duct type id

updated_by
string

Name of the user updated the cable

updated_ts
string (date-time)

Date updated

user_id
string

User ID

400

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

{
  "owner_id": [
    "This field is required."
  ],
  "state_id": [
    "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?