Create new electric duct
  • 29 Aug 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Create new electric duct

  • Dark
    Light
  • PDF

Article summary

Post
/el_ducts/

Operation is used to create new electric duct. Available from product version 3.2.2.

Security
API Key
Header parameter nameAuthorization
Token issued for API consumer.
Body parameters

Electric Duct to be created

object
cables
Array of string

Electric Cables in the duct

string
conduit
Array of string

Electric Conduit the duct is in

string
id
integer

Primary key

identification
string

Identification

installation_year
integer

Installation year

owner
integer

Electric Duct owner id

plan
integer

Plan id

remarks
string

Remarks. Available from product version 3.2.14.

renter
integer

Electric Duct renter id

type
integer Required

Electric Duct type id

usage_state
integer Required

Electric Duct usage state id

Responses
201

A created Electric Duct

{
  "cables": [],
  "conduit": [],
  "hole": null,
  "id": 3551,
  "identification": "ABC",
  "installation_year": null,
  "n_subducts": null,
  "owner": null,
  "plan": null,
  "rent_paid": null,
  "renter": null,
  "type": 11,
  "usage_state": 650
}
object
cables
Array of string

Electric Cables in the duct

string
conduit
Array of string

Electric Conduit the duct is in

string
id
integer

Primary key

identification
string

Identification

installation_year
integer

Installation year

owner
integer

Electric Duct owner id

plan
integer

Plan id

remarks
string

Remarks. Available from product version 3.2.14.

renter
integer

Electric Duct renter id

type
integer

Electric Duct type id

usage_state
integer

Electric Duct usage state id

400

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

{
  "type": [
    "This field is required."
  ],
  "usage_state": [
    "This field is required."
  ]
}
object

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?