Skip to main content

Edit String

Update an existing string within a section. All fields are optional — include only what you want to change. You can also reposition the string within its section by supplying index.

The path parameter stringid is the zero-based index of the string within the section's strings array, not a UUID.

PATCH/api/v1/designs/{designid}/well-schematic/sections/{sectionid}/strings/{stringid}

Update fields on an existing string within a well-schematic section

Path Parameters

NameTypeRequiredDescription
designidstring (UUID)The UUID of the design
sectionidstring (UUID)The UUID of the parent section
stringidstring (numeric index)Zero-based position of the string within the section's strings array

Headers

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

Request Body

Partial string fields — at least one

Request body fields

All fields are optional, but at least one must be present.

FieldTypeDescription
topMDRKBstringTop depth, e.g. "20|m"
baseMDRKBstringBase depth
odstringOuter diameter; must exist in the Casing library
nominalWeightstringNominal weight; must exist in the Casing library
gradestringMaterial grade; must exist in the Grades library
connectionstringConnection name; must exist in the Connectors library
indexnumberNew zero-based position within the section

Reorder semantics

Supplying index moves the string to that position within the section. The server automatically:

  • adjusts the previous-position neighbours' depths to close the gap
  • adjusts the new-position neighbours' depths to absorb the moved string
  • for Liner / Screen sections, updates the section's top depth when the string moves to index 0
  • updates the section's base depth and (if linked) hole depth when the string moves to the end

Notes

  • stringid is the index, not a UUID. After a delete or insert the indices may shift.
  • All measurements must be unit-encoded strings, e.g. "880\|m", "20\|in"
  • Audit-log entries record the diff between the previous and updated string