Create new Point
  • 28 Oct 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Create new Point

  • Dark
    Light
  • PDF

Article summary

Post
/keycore-points/

Operation is used to create new point.

Security
API Key
Header parameter nameAuthorization

Token issued for API consumer.

Body parameters

Point to be created

object

Point

Owner
integer

Point object owner id. Available from product version 3.6.3.

Renter
integer

Renter id. Available from product version 3.6.3.

angle
number (float)

Point rotation

color
string

Point color

description
string

Additional details

distance
number (float)

Distance

haccuracy
integer

Height accuracy id

history_date
string (date)

Mapping date

identification
string

Identification of point

installYear
integer

Install year. Available from product version 3.6.8.

length
number (float)

Length

location
string (ewkt)

Geographical location

location_accuracy
integer

Location accuracy id

mapper
string

Mapper

mapping_method
integer

Mapping method id

plan
integer

Point plan id

point_type
integer Required

Point type id

safety_distance
integer

Safety distance id. Available from product version 3.6.4.

scale
number (float)

Point scale

size
integer

Point size

state
integer

Point state id

survey_amount
string

Survey amount

Responses
201

A newly created Point

{
  "angle": null,
  "color": "test",
  "created_by": "test user",
  "created_ts": "2022-10-11T05:34:30Z",
  "description": "TEST API",
  "distance": null,
  "haccuracy": null,
  "history_date": null,
  "id": 2982050,
  "identification": null,
  "installYear": 2023,
  "length": null,
  "location": "SRID=3067;POINT Z (458823.6567999999970198 6697544.1913999998942018 0.0000000000000000)",
  "location_accuracy": null,
  "mapper": "",
  "mapping_method": null,
  "plan": null,
  "point_type": 1002,
  "scale": null,
  "size": null,
  "state": null,
  "survey_amount": ""
}
object

Point

Owner
integer

Point object owner id. Available from product version 3.6.3.

Renter
integer

Renter id. Available from product version 3.6.3.

angle
number (float)

Point rotation

color
string

Point color

created_by
string

Creator

created_ts
string (date-time)

Creation date and time

description
string

Additional details

distance
number (float)

Distance

haccuracy
integer

Height accuracy id

history_date
string (date)

Mapping date

id
integer

Unique id of point

identification
string

Identification of point

installYear
integer

Install year. Available from product version 3.6.8.

length
number (float)

Length

location
string (ewkt)

Geographical location

location_accuracy
integer

Location accuracy id

mapper
string

Mapper

mapping_method
integer

Mapping method id

plan
integer

Point plan id

point_type
integer

Point type id

safety_distance
integer

Safety distance id. Available from product version 3.6.4.

scale
number (float)

Point scale

size
integer

Point size

state
integer

Point state id

survey_amount
string

Survey amount

updated_by
string

Last updater

updated_ts
string (date-time)

Last updated date and time

400

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

{
  "point_type": [
    "This field is required."
  ]
}
object

Fields which failed validation

property*
Array of string additionalProperties

List of validation errors for this fieldname

string

Validation error

401

Authentication credentials are missing or invalid

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

Detailed description of error


Was this article helpful?

What's Next