🤖 New in SPACE GASS 14.51 — the MCP server lets your AI agent build, analyse and design your models. Get started →
SpaceGass API
SPACE GASS API

Master-slave constraints between nodes


Get List

GET
/api/v1
/job/structure/node-constraints

Returns all attribute rows for this resource type, with optional filtering. Sorted by parent Id ascending. Pagination metadata is returned in response headers (Total-Count, Offset, Limit).

Get List › query Parameters

slaves
​string

Slave node Ids to filter by, in SG list format (e.g. "1,5-10,15"). Omit to return all constraints.

Example: 1,5-10,15
masterNode
​integer · int32

Filter by master node number — returns only constraints whose master node matches. Omit to return constraints regardless of master.

Example: 1
offset
​integer · int32 · min: 0 · max: 2147483647

Number of items to skip from the start of the result set. Default is 0.

limit
​integer · int32 · min: 1 · max: 2147483647

Maximum number of items to return. Default is null (return all).

Get List › Responses

OK

DTO for reading a node constraint (master-slave constraint). Defines a kinematic relationship between a slave node and a master node. The slave node's degrees of freedom are tied to the master node according to the constraint code. Top-level entity attribute keyed on the slave node — each node can be a slave in at most one constraint.
slaveNode
​integer · int32

The slave node number. This is the node whose DOFs are constrained to the master.

masterNode
​integer · int32

The master node number. The slave node's constrained DOFs follow this node's motion.

constraintCode
​string | null

A 6-character string defining which degrees of freedom are constrained. Each character position maps to a DOF: UX, UY, UZ, RX, RY, RZ (left to right). 'F' = Fixed (slave DOF is tied to master), 'R' = Released (slave DOF is free). Example: "FFFRRR" constrains translations only; "FFFFFF" constrains all 6 DOFs.

axes
​ConstraintAxes · enum

Coordinate axis system used for master-slave constraint equations. Maps to SPACE GASS lookup table "Constraint Axes".

Enum values:
Global
Inclined
xVector
​number · double

X component of the constraint axis direction vector.

yVector
​number · double

Y component of the constraint axis direction vector.

zVector
​number · double

Z component of the constraint axis direction vector.


Create

POST
/api/v1
/job/structure/node-constraints

Creates a new attribute row. The body must include the parent Id (e.g. node, member). Returns 409 if a row already exists for the supplied parent — PATCH instead, or DELETE first. Returns 404 if the parent does not exist.

Create › Request Body

DTO for creating a node constraint. POST is entity-style: 409 if a constraint already exists for the supplied slave node — caller must DELETE first or PATCH instead.
slaveNode
​integer · int32 · min: 1 · max: 2147483647 · required

The slave node number. Required in the request body.

masterNode
​integer · int32 · min: 1 · max: 2147483647 · required

The master node number. The slave node's constrained DOFs will follow this node's motion.

constraintCode
​string · minLength: 6 · maxLength: 6 · required

A 6-character string defining which degrees of freedom are constrained. Each character position maps to a DOF: UX, UY, UZ, RX, RY, RZ (left to right). 'F' = Fixed (tied to master), 'R' = Released (free). Example: "FFFRRR" constrains translations only; "FFFFFF" constrains all 6 DOFs.

axes
​ConstraintAxes · enum

Coordinate axis system used for master-slave constraint equations. Maps to SPACE GASS lookup table "Constraint Axes".

Enum values:
Global
Inclined
xVector
​number | null · double

X component of the constraint axis direction vector.

yVector
​number | null · double

Y component of the constraint axis direction vector.

zVector
​number | null · double

Z component of the constraint axis direction vector.

Create › Responses

Created

DTO for reading a node constraint (master-slave constraint). Defines a kinematic relationship between a slave node and a master node. The slave node's degrees of freedom are tied to the master node according to the constraint code. Top-level entity attribute keyed on the slave node — each node can be a slave in at most one constraint.
slaveNode
​integer · int32

The slave node number. This is the node whose DOFs are constrained to the master.

masterNode
​integer · int32

The master node number. The slave node's constrained DOFs follow this node's motion.

constraintCode
​string | null

A 6-character string defining which degrees of freedom are constrained. Each character position maps to a DOF: UX, UY, UZ, RX, RY, RZ (left to right). 'F' = Fixed (slave DOF is tied to master), 'R' = Released (slave DOF is free). Example: "FFFRRR" constrains translations only; "FFFFFF" constrains all 6 DOFs.

axes
​ConstraintAxes · enum

Coordinate axis system used for master-slave constraint equations. Maps to SPACE GASS lookup table "Constraint Axes".

Enum values:
Global
Inclined
xVector
​number · double

X component of the constraint axis direction vector.

yVector
​number · double

Y component of the constraint axis direction vector.

zVector
​number · double

Z component of the constraint axis direction vector.


Get Node Constraint

GET
/api/v1
/job/structure/node-constraints/{nodeId}

Gets the master-slave constraint for a specific slave node. Returns 404 if no constraint is defined for the node. Each node can be a slave in at most one constraint.

Get Node Constraint › path Parameters

nodeId
​integer · int32 · required

The slave node Id

Get Node Constraint › Responses

Returns the node constraint

DTO for reading a node constraint (master-slave constraint). Defines a kinematic relationship between a slave node and a master node. The slave node's degrees of freedom are tied to the master node according to the constraint code. Top-level entity attribute keyed on the slave node — each node can be a slave in at most one constraint.
slaveNode
​integer · int32

The slave node number. This is the node whose DOFs are constrained to the master.

masterNode
​integer · int32

The master node number. The slave node's constrained DOFs follow this node's motion.

constraintCode
​string | null

A 6-character string defining which degrees of freedom are constrained. Each character position maps to a DOF: UX, UY, UZ, RX, RY, RZ (left to right). 'F' = Fixed (slave DOF is tied to master), 'R' = Released (slave DOF is free). Example: "FFFRRR" constrains translations only; "FFFFFF" constrains all 6 DOFs.

axes
​ConstraintAxes · enum

Coordinate axis system used for master-slave constraint equations. Maps to SPACE GASS lookup table "Constraint Axes".

Enum values:
Global
Inclined
xVector
​number · double

X component of the constraint axis direction vector.

yVector
​number · double

Y component of the constraint axis direction vector.

zVector
​number · double

Z component of the constraint axis direction vector.


Update Node Constraint

PATCH
/api/v1
/job/structure/node-constraints/{nodeId}

Partially updates the master-slave constraint for a specific slave node. Only provided fields are updated; omitted fields remain unchanged. The constraint must already exist — use POST /node-constraints to create one. If masterNode is supplied it must reference an existing node and not equal the slave.

Update Node Constraint › path Parameters

nodeId
​integer · int32 · required

The slave node Id

Update Node Constraint › Request Body

DTO for partially updating an existing node constraint. Only fields included in the request are updated; omit a field to keep its current value.
slaveNode
​integer | null · int32

The slave node number that identifies which constraint to update. Required for bulk PATCH; ignored for single-node PATCH (route value wins).

masterNode
​integer | null · int32 · min: 1 · max: 2147483647

The master node number.

constraintCode
​string | null · minLength: 6 · maxLength: 6

A 6-character string defining which degrees of freedom are constrained. Each character position maps to a DOF: UX, UY, UZ, RX, RY, RZ (left to right). 'F' = Fixed (tied to master), 'R' = Released (free).

axes
​ConstraintAxes · enum

Coordinate axis system used for master-slave constraint equations. Maps to SPACE GASS lookup table "Constraint Axes".

Enum values:
Global
Inclined
xVector
​number | null · double

X component of the constraint axis direction vector.

yVector
​number | null · double

Y component of the constraint axis direction vector.

zVector
​number | null · double

Z component of the constraint axis direction vector.

Update Node Constraint › Responses

Constraint updated successfully

DTO for reading a node constraint (master-slave constraint). Defines a kinematic relationship between a slave node and a master node. The slave node's degrees of freedom are tied to the master node according to the constraint code. Top-level entity attribute keyed on the slave node — each node can be a slave in at most one constraint.
slaveNode
​integer · int32

The slave node number. This is the node whose DOFs are constrained to the master.

masterNode
​integer · int32

The master node number. The slave node's constrained DOFs follow this node's motion.

constraintCode
​string | null

A 6-character string defining which degrees of freedom are constrained. Each character position maps to a DOF: UX, UY, UZ, RX, RY, RZ (left to right). 'F' = Fixed (slave DOF is tied to master), 'R' = Released (slave DOF is free). Example: "FFFRRR" constrains translations only; "FFFFFF" constrains all 6 DOFs.

axes
​ConstraintAxes · enum

Coordinate axis system used for master-slave constraint equations. Maps to SPACE GASS lookup table "Constraint Axes".

Enum values:
Global
Inclined
xVector
​number · double

X component of the constraint axis direction vector.

yVector
​number · double

Y component of the constraint axis direction vector.

zVector
​number · double

Z component of the constraint axis direction vector.


Delete Node Constraint

DELETE
/api/v1
/job/structure/node-constraints/{nodeId}

Deletes the master-slave constraint for a specific slave node. Returns 404 if no constraint is defined for the node.

Delete Node Constraint › path Parameters

nodeId
​integer · int32 · required

The slave node Id

Delete Node Constraint › Responses

Constraint deleted successfully

No data returned

Get Metadata

GET
/api/v1
/job/structure/node-constraints/metadata

Returns the schema for the resource: field definitions, units resolved against current job units, and allowed values for enum fields.

Get Metadata › Responses

OK

Metadata describing an API resource — entity, sub-resource, or result set. Returned from `GET …/metadata` endpoints so clients can introspect the shape, units, and valid values of the data without hitting a live endpoint.
resourceType
​string | null

Resource type identifier — e.g. "Members", "NodeLoads", "StaticResults".

Example: Members
count
​integer | null · int32

Current count of items in this resource. Null for sub-resources whose count does not apply uniformly.

maxId
​integer | null · int32

Maximum Id currently in use (single-int Id entities only).

nextId
​integer | null · int32

Next available Id (single-int Id entities only).

​array | null

Field definitions describing the resource's wire shape. Each entry corresponds to a property on the read DTO; jsonName matches the JSON key clients see. On a results endpoint each field also says whether sort and distinctBy accept it and which value-filter parameters apply to it.


Create Bulk

POST
/api/v1
/job/structure/node-constraints/bulk

Creates multiple attribute rows in a single request. Each item must include its parent Id in the body. Returns 409 (per-item error) for any row whose parent already has an attribute.

Create Bulk › query Parameters

continueOnError
​boolean

If true, processing continues after per-item failures and partial results are returned. Defaults to false (stop on first error).

Default: false

Create Bulk › Request Body

DTO for creating a node constraint. POST is entity-style: 409 if a constraint already exists for the supplied slave node — caller must DELETE first or PATCH instead.
slaveNode
​integer · int32 · min: 1 · max: 2147483647 · required

The slave node number. Required in the request body.

masterNode
​integer · int32 · min: 1 · max: 2147483647 · required

The master node number. The slave node's constrained DOFs will follow this node's motion.

constraintCode
​string · minLength: 6 · maxLength: 6 · required

A 6-character string defining which degrees of freedom are constrained. Each character position maps to a DOF: UX, UY, UZ, RX, RY, RZ (left to right). 'F' = Fixed (tied to master), 'R' = Released (free). Example: "FFFRRR" constrains translations only; "FFFFFF" constrains all 6 DOFs.

axes
​ConstraintAxes · enum

Coordinate axis system used for master-slave constraint equations. Maps to SPACE GASS lookup table "Constraint Axes".

Enum values:
Global
Inclined
xVector
​number | null · double

X component of the constraint axis direction vector.

yVector
​number | null · double

Y component of the constraint axis direction vector.

zVector
​number | null · double

Z component of the constraint axis direction vector.

Create Bulk › Responses

OK

Result of a bulk operation.
​array | null

Successfully processed items.

​array | null

Errors from failed items.

errorsTruncated
​boolean

True when the bulk operation stopped accumulating errors after reaching SpaceGassApi.Models.Dtos.Entity.BulkResultDto`1.ErrorMessageCap. Further failures may exist beyond what is reported.


Update Bulk

PATCH
/api/v1
/job/structure/node-constraints/bulk

Updates multiple attribute rows in a single request. Each item must include its parent Id. Per-item 404 reported as a bulk error if no row exists for the supplied parent.

Update Bulk › query Parameters

continueOnError
​boolean

If true, processing continues after per-item failures and partial results are returned. Defaults to false (stop on first error).

Default: false

Update Bulk › Request Body

DTO for partially updating an existing node constraint. Only fields included in the request are updated; omit a field to keep its current value.
slaveNode
​integer | null · int32

The slave node number that identifies which constraint to update. Required for bulk PATCH; ignored for single-node PATCH (route value wins).

masterNode
​integer | null · int32 · min: 1 · max: 2147483647

The master node number.

constraintCode
​string | null · minLength: 6 · maxLength: 6

A 6-character string defining which degrees of freedom are constrained. Each character position maps to a DOF: UX, UY, UZ, RX, RY, RZ (left to right). 'F' = Fixed (tied to master), 'R' = Released (free).

axes
​ConstraintAxes · enum

Coordinate axis system used for master-slave constraint equations. Maps to SPACE GASS lookup table "Constraint Axes".

Enum values:
Global
Inclined
xVector
​number | null · double

X component of the constraint axis direction vector.

yVector
​number | null · double

Y component of the constraint axis direction vector.

zVector
​number | null · double

Z component of the constraint axis direction vector.

Update Bulk › Responses

OK

Result of a bulk operation.
​array | null

Successfully processed items.

​array | null

Errors from failed items.

errorsTruncated
​boolean

True when the bulk operation stopped accumulating errors after reaching SpaceGassApi.Models.Dtos.Entity.BulkResultDto`1.ErrorMessageCap. Further failures may exist beyond what is reported.


Delete Bulk

DELETE
/api/v1
/job/structure/node-constraints/bulk

Deletes multiple attribute rows by parent Id. The body is a JSON array of integer parent Ids.

Delete Bulk › query Parameters

continueOnError
​boolean

If true, processing continues after per-item failures and partial results are returned. Defaults to false (stop on first error).

Default: false

Delete Bulk › Request Body

​integer[]

Delete Bulk › Responses

Returns a bulk result whose succeeded entries each carry the deleted parent Id.

Result of a bulk operation.
​array | null

Successfully processed items.

​array | null

Errors from failed items.

errorsTruncated
​boolean

True when the bulk operation stopped accumulating errors after reaching SpaceGassApi.Models.Dtos.Entity.BulkResultDto`1.ErrorMessageCap. Further failures may exist beyond what is reported.