Skip to main content

Replace Well Schematic

Replace the entire well schematic for a design. This is a full overwrite — the supplied sections array replaces any existing schematic on the design.

Use this endpoint to seed a brand-new design with its initial casing scheme, or to perform a bulk rewrite. For incremental changes prefer the section, string, and packer endpoints.

PUT/api/v1/designs/{designid}/well-schematic

Replace the well schematic for the design with the supplied sections

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

Full well schematic with at least one section

Request body fields

FieldTypeRequiredDescription
idstring (UUID)NoExisting well schematic identifier (optional; ignored on replace)
sectionsarrayYesOrdered list of sections, top-down. Minimum 1 entry.

Section object

FieldTypeRequiredDescription
idstring (UUID)NoExisting section ID. Omit to let the server assign one.
typestringYesOne of Casing, Liner, Tieback, Tubing, Screen, OpenHole
parametersobjectYesType-specific parameters — see Create Section for the required fields per type
indexnumberNoPosition of the section in the schematic (top-down). Defaults to insertion order.

Notes

  • This is a destructive replace — anything not in the supplied sections array is removed
  • All measurements must be unit-encoded strings, e.g. "3500\|m", "9.625\|in", "1.05\|sg"
  • The supplied sections are validated against the section-specific schema before being persisted
  • An audit-log entry is written with a diff of the old vs new schematic