Skip to main content

Create Trajectory

Create a new trajectory for a design. You can create either a planned trajectory (a designed well path) or an actual trajectory (from real survey data).

For planned trajectories, supply trajectoryPoints with at least MD, inclination, and azimuth for each station. For actual trajectories, you can either provide trajectoryPoints directly or supply surveyPrograms that reference existing survey runs.

POST/api/v1/designs/{designid}/trajectories

Create a new planned or actual trajectory for the design

Path Parameters

NameTypeRequiredDescription
designidstring (UUID)The UUID of the design

Headers

NameValueDescription
apikeyYOUR_API_KEYYour API authentication key
Content-Typeapplication/jsonMust be application/json

Request Body

Trajectory definition with name, type, and survey points

Request body fields

FieldTypeRequiredDescription
namestringYesDisplay name for the trajectory
type"planned" or "actual"YesTrajectory type — must match the design category
trajectoryPointsobjectConditionalSurvey points table (see format below)
surveyProgramsarrayConditionalReferences to survey runs with depth intervals
depthReference"RKB" or "MSL"NoDepth reference datum (defaults to RKB)
airGapstringNoAir gap measurement, e.g. "25|m"

Which fields to use

Trajectory typeRequired data
PlannedtrajectoryPoints is required. surveyPrograms is not allowed.
Actual (from points)Provide trajectoryPoints only.
Actual (from survey runs)Provide surveyPrograms only. Survey runs must already exist.

You cannot provide both trajectoryPoints and surveyPrograms in the same request.

Trajectory points format

Provide points as a compact table with headers and values. The minimum required headers are:

Header keyQuantityUnitDescription
depthMDdepthmMeasured depth
inclinationanglesdegWellbore inclination
azimuthanglesdegWellbore azimuth

The server calculates TVD, dogleg, positions, and other derived values automatically.

Notes

  • The trajectory type must match the design category — you cannot create a planned trajectory on an actual design
  • Only one trajectory is allowed per planned design
  • Station values should be in ascending measured depth order