๐Ÿค– 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

Structural materials


Get List

GET
/api/v1
/job/structure/materials

Returns all items with optional filtering, pagination and sub-resource expansion. Results are always sorted by Id ascending. Pagination metadata is returned in response headers (Total-Count, Offset, Limit). Expand defaults to none on list endpoints so payloads stay lean; pass Expand=all to hydrate sub-resources. Sub-resource expansion is opt-in per resource type โ€” resources that don't define sub-resources ignore the parameter.

Get List โ€บ query Parameters

materials
โ€‹string

Material Ids to filter by, in SG list format (e.g. "1,3-7,10"). Omit to return all materials.

Example: 1,3-7,10
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).

expand
โ€‹ExpandOptionย ยทย enum

Sub-resource expansion. Defaults to none; pass all to hydrate sub-resources.

Controls sub-resource hydration on entity GET endpoints. Shared across every resource that supports expansion โ€” a given resource's metadata (expandable) lists which sub-resources All hydrates.

Enum values:
None
All

Get List โ€บ Responses

OK

โ€‹Material[]
DTO for reading a material entity.
id
โ€‹integerย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647ย ยทย required

Primary identifier - must be unique, no duplicates allowed. Range: 1 to int.MaxValue

Example: 1
name
โ€‹string | null

Material name.

youngsModulus
โ€‹numberย ยทย double

Young's modulus.

poissonsRatio
โ€‹numberย ยทย double

Poisson's ratio (unitless).

massDensity
โ€‹numberย ยทย double

Mass density.

thermalCoeff
โ€‹numberย ยทย double

Thermal expansion coefficient.

concreteStrength
โ€‹numberย ยทย double

Concrete compressive strength.

source
โ€‹PropertySourceย ยทย enum

Indicates whether a section or material was user-defined or imported from a library.

Enum values:
User
Library
library
โ€‹string | null

Library name. Empty for user-defined materials.


Create

POST
/api/v1
/job/structure/materials

Creates a new item. If a validator is registered, the item is validated before creation. The response is fully hydrated โ€” indicators, sub-resources and computed fields are populated the same way as a single-item GET with its default expand=all.

Create โ€บ Request Body

DTO for creating a new user-defined material.
name
โ€‹stringย ยทย minLength: 1ย ยทย required

Material name.

id
โ€‹integer | nullย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647

Primary identifier - must be unique, no duplicates allowed. Optional - will be auto-assigned to next available number if not provided. If provided, must not already exist in the model.

Example: 1
youngsModulus
โ€‹numberย ยทย doubleย ยทย min: 5e-324ย ยทย max: 1.7976931348623157e+308

Young's modulus. Must be greater than zero.

poissonsRatio
โ€‹numberย ยทย double

Poisson's ratio (unitless).

massDensity
โ€‹numberย ยทย doubleย ยทย min: 5e-324ย ยทย max: 1.7976931348623157e+308

Mass density. Must be greater than zero.

thermalCoeff
โ€‹numberย ยทย double

Thermal expansion coefficient.

concreteStrength
โ€‹number | nullย ยทย double

Concrete compressive strength.

Create โ€บ Responses

Created

DTO for reading a material entity.
id
โ€‹integerย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647ย ยทย required

Primary identifier - must be unique, no duplicates allowed. Range: 1 to int.MaxValue

Example: 1
name
โ€‹string | null

Material name.

youngsModulus
โ€‹numberย ยทย double

Young's modulus.

poissonsRatio
โ€‹numberย ยทย double

Poisson's ratio (unitless).

massDensity
โ€‹numberย ยทย double

Mass density.

thermalCoeff
โ€‹numberย ยทย double

Thermal expansion coefficient.

concreteStrength
โ€‹numberย ยทย double

Concrete compressive strength.

source
โ€‹PropertySourceย ยทย enum

Indicates whether a section or material was user-defined or imported from a library.

Enum values:
User
Library
library
โ€‹string | null

Library name. Empty for user-defined materials.


Get by Id

GET
/api/v1
/job/structure/materials/{id}

Expand defaults to all on the single-item endpoint; pass Expand=none to suppress sub-resource hydration. Sub-resource expansion is opt-in per resource type โ€” resources that don't define sub-resources ignore the parameter.

Get by Id โ€บ path Parameters

id
โ€‹integerย ยทย int32ย ยทย required

The entity Id

Get by Id โ€บ query Parameters

expand
โ€‹ExpandOptionย ยทย enum

Sub-resource expansion. Defaults to all; pass none to suppress sub-resource hydration.

Controls sub-resource hydration on entity GET endpoints. Shared across every resource that supports expansion โ€” a given resource's metadata (expandable) lists which sub-resources All hydrates.

Enum values:
None
All

Get by Id โ€บ Responses

OK

DTO for reading a material entity.
id
โ€‹integerย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647ย ยทย required

Primary identifier - must be unique, no duplicates allowed. Range: 1 to int.MaxValue

Example: 1
name
โ€‹string | null

Material name.

youngsModulus
โ€‹numberย ยทย double

Young's modulus.

poissonsRatio
โ€‹numberย ยทย double

Poisson's ratio (unitless).

massDensity
โ€‹numberย ยทย double

Mass density.

thermalCoeff
โ€‹numberย ยทย double

Thermal expansion coefficient.

concreteStrength
โ€‹numberย ยทย double

Concrete compressive strength.

source
โ€‹PropertySourceย ยทย enum

Indicates whether a section or material was user-defined or imported from a library.

Enum values:
User
Library
library
โ€‹string | null

Library name. Empty for user-defined materials.


Update

PATCH
/api/v1
/job/structure/materials/{id}

Updates an existing item. If a validator is registered, the update is validated first.

Update โ€บ path Parameters

id
โ€‹integerย ยทย int32ย ยทย required

The entity Id

Update โ€บ Request Body

DTO for updating an existing material. All fields are optional to support partial updates.
id
โ€‹integer | nullย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647

Primary identifier of the entity to update. Optional for single updates (Id comes from route), required for bulk updates.

Example: 1
name
โ€‹string | null

Material name.

youngsModulus
โ€‹number | nullย ยทย doubleย ยทย min: 5e-324ย ยทย max: 1.7976931348623157e+308

Young's modulus. Must be greater than zero if provided.

poissonsRatio
โ€‹number | nullย ยทย double

Poisson's ratio (unitless).

massDensity
โ€‹number | nullย ยทย doubleย ยทย min: 5e-324ย ยทย max: 1.7976931348623157e+308

Mass density. Must be greater than zero if provided.

thermalCoeff
โ€‹number | nullย ยทย double

Thermal expansion coefficient.

concreteStrength
โ€‹number | nullย ยทย double

Concrete compressive strength.

Update โ€บ Responses

OK

DTO for reading a material entity.
id
โ€‹integerย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647ย ยทย required

Primary identifier - must be unique, no duplicates allowed. Range: 1 to int.MaxValue

Example: 1
name
โ€‹string | null

Material name.

youngsModulus
โ€‹numberย ยทย double

Young's modulus.

poissonsRatio
โ€‹numberย ยทย double

Poisson's ratio (unitless).

massDensity
โ€‹numberย ยทย double

Mass density.

thermalCoeff
โ€‹numberย ยทย double

Thermal expansion coefficient.

concreteStrength
โ€‹numberย ยทย double

Concrete compressive strength.

source
โ€‹PropertySourceย ยทย enum

Indicates whether a section or material was user-defined or imported from a library.

Enum values:
User
Library
library
โ€‹string | null

Library name. Empty for user-defined materials.


Delete

DELETE
/api/v1
/job/structure/materials/{id}

Deletes the entity with the supplied Id. Returns 404 if no entity with that Id exists.

For entities whose delete cascades (Nodes, Members, Plates), returns 200 with a SpaceGassApi.Models.Dtos.Entity.DeleteResultDto listing every row removed โ€” the entity itself, child rows that referenced it (loads, restraints, offsets, plate cuts, โ€ฆ), any nodes left disconnected by the removal, and the steel member groups that went with them. Notes and dimensions attached to the removed items are removed from the job settings too, but are not listed; if those settings cannot be saved, the response carries a warning instead. Cleanup is best-effort and not atomic: if it fails part-way, the request fails and some of the removals may already have been made.

For all other entities, returns 204 No Content and removes only the entity's own row.

Delete โ€บ path Parameters

id
โ€‹integerย ยทย int32ย ยทย required

The entity Id

Delete โ€บ Responses

No Content

No data returned

Get Metadata

GET
/api/v1
/job/structure/materials/metadata

Returns the resource metadata document โ€” field schema, data types, units resolved against current job units, allowed values for enum fields, and validation bounds. Clients use this to drive UI, form validation, and schema introspection.

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.


Next Id

GET
/api/v1
/job/structure/materials/next

Gets the next available (unused) Id for this entity type.

Next Id โ€บ query Parameters

start
โ€‹integerย ยทย int32

The Id value to start searching from (inclusive). Defaults to 1.

Default: 1

Next Id โ€บ Responses

OK

integerย ยทย int32

Create Bulk

POST
/api/v1
/job/structure/materials/bulk

Creates multiple items in a bulk operation. If a validator is registered, all items are validated upfront before any are created.

Create Bulk โ€บ query Parameters

continueOnError
โ€‹boolean

Whether to continue processing after individual failures

Default: false

Create Bulk โ€บ Request Body

DTO for creating a new user-defined material.
name
โ€‹stringย ยทย minLength: 1ย ยทย required

Material name.

id
โ€‹integer | nullย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647

Primary identifier - must be unique, no duplicates allowed. Optional - will be auto-assigned to next available number if not provided. If provided, must not already exist in the model.

Example: 1
youngsModulus
โ€‹numberย ยทย doubleย ยทย min: 5e-324ย ยทย max: 1.7976931348623157e+308

Young's modulus. Must be greater than zero.

poissonsRatio
โ€‹numberย ยทย double

Poisson's ratio (unitless).

massDensity
โ€‹numberย ยทย doubleย ยทย min: 5e-324ย ยทย max: 1.7976931348623157e+308

Mass density. Must be greater than zero.

thermalCoeff
โ€‹numberย ยทย double

Thermal expansion coefficient.

concreteStrength
โ€‹number | nullย ยทย double

Concrete compressive strength.

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/materials/bulk

Updates multiple items in a bulk operation. Each item must include its Id in the request body. If a validator is registered, all items are validated upfront before any are updated.

Update Bulk โ€บ query Parameters

continueOnError
โ€‹boolean

Whether to continue processing after individual failures

Default: false

Update Bulk โ€บ Request Body

DTO for updating an existing material. All fields are optional to support partial updates.
id
โ€‹integer | nullย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647

Primary identifier of the entity to update. Optional for single updates (Id comes from route), required for bulk updates.

Example: 1
name
โ€‹string | null

Material name.

youngsModulus
โ€‹number | nullย ยทย doubleย ยทย min: 5e-324ย ยทย max: 1.7976931348623157e+308

Young's modulus. Must be greater than zero if provided.

poissonsRatio
โ€‹number | nullย ยทย double

Poisson's ratio (unitless).

massDensity
โ€‹number | nullย ยทย doubleย ยทย min: 5e-324ย ยทย max: 1.7976931348623157e+308

Mass density. Must be greater than zero if provided.

thermalCoeff
โ€‹number | nullย ยทย double

Thermal expansion coefficient.

concreteStrength
โ€‹number | nullย ยทย double

Concrete compressive strength.

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/materials/bulk

Deletes multiple entities by Id. The body is a JSON array of integer Ids (e.g. [1, 5, 10]).

For cascading entities (Nodes, Members, Plates), continueOnError governs only the per-Id existence pre-check: a missing Id is reported and, when false, aborts the batch. The cleanup for the whole batch then runs once. It is best-effort and not atomic: if it fails part-way, the request fails and some of the removals may already have been made.

For Nodes, Members and Plates the response also has removed: the batch's cascade, in the shape a single delete returns.

Delete Bulk โ€บ query Parameters

continueOnError
โ€‹boolean

Whether to continue on error

Default: false

Delete Bulk โ€บ Request Body

โ€‹integer[]

Delete Bulk โ€บ Responses

Returns a bulk result whose succeeded entries each carry the deleted 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.


Create Library Material

POST
/api/v1
/job/structure/materials/library

Creates a material by looking it up in a SPACE GASS material library. All material properties (Young's modulus, Poisson's ratio, mass density, thermal coefficient, concrete strength) are populated from the library โ€” the caller provides only the material name and library.

Create Library Material โ€บ Request Body

DTO for creating a new library-sourced material. All material properties (Young's modulus, Poisson's ratio, etc.) are resolved from the library โ€” the caller provides only the material name and library.
name
โ€‹stringย ยทย minLength: 1ย ยทย required

Material item name within the library.

Example: Steel(AS)
library
โ€‹stringย ยทย minLength: 1ย ยทย required

Library name.

Example: AustralianMaterials
id
โ€‹integer | nullย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647

Primary identifier - must be unique, no duplicates allowed. Optional - will be auto-assigned to next available number if not provided. If provided, must not already exist in the model.

Example: 1

Create Library Material โ€บ Responses

Material created

DTO for reading a material entity.
id
โ€‹integerย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647ย ยทย required

Primary identifier - must be unique, no duplicates allowed. Range: 1 to int.MaxValue

Example: 1
name
โ€‹string | null

Material name.

youngsModulus
โ€‹numberย ยทย double

Young's modulus.

poissonsRatio
โ€‹numberย ยทย double

Poisson's ratio (unitless).

massDensity
โ€‹numberย ยทย double

Mass density.

thermalCoeff
โ€‹numberย ยทย double

Thermal expansion coefficient.

concreteStrength
โ€‹numberย ยทย double

Concrete compressive strength.

source
โ€‹PropertySourceย ยทย enum

Indicates whether a section or material was user-defined or imported from a library.

Enum values:
User
Library
library
โ€‹string | null

Library name. Empty for user-defined materials.


Create Library Materials Bulk

POST
/api/v1
/job/structure/materials/library/bulk

Creates multiple library-sourced materials in a single request. Each material is resolved from the SPACE GASS material library by (name, library).

Create Library Materials Bulk โ€บ query Parameters

continueOnError
โ€‹boolean

Whether to continue processing after individual failures

Default: false

Create Library Materials Bulk โ€บ Request Body

DTO for creating a new library-sourced material. All material properties (Young's modulus, Poisson's ratio, etc.) are resolved from the library โ€” the caller provides only the material name and library.
name
โ€‹stringย ยทย minLength: 1ย ยทย required

Material item name within the library.

Example: Steel(AS)
library
โ€‹stringย ยทย minLength: 1ย ยทย required

Library name.

Example: AustralianMaterials
id
โ€‹integer | nullย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647

Primary identifier - must be unique, no duplicates allowed. Optional - will be auto-assigned to next available number if not provided. If provided, must not already exist in the model.

Example: 1

Create Library Materials Bulk โ€บ Responses

Bulk operation completed (check succeeded/errors arrays)

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.


Replace With Library Material

PUT
/api/v1
/job/structure/materials/{id}/library

Replaces the material at the given Id with a library-sourced material, resolved from the SPACE GASS material library by (name, library); the Id and every member and plate that use it are kept, and a name or library that cannot be resolved leaves the material unchanged. Use this to convert a User material to a Library material, or to re-resolve an existing Library material against a different library entry. Any id in the request body is ignored โ€” the route Id wins.

Replace With Library Material โ€บ path Parameters

id
โ€‹integerย ยทย int32ย ยทย required

The Id of the material to replace

Replace With Library Material โ€บ Request Body

DTO for creating a new library-sourced material. All material properties (Young's modulus, Poisson's ratio, etc.) are resolved from the library โ€” the caller provides only the material name and library.
name
โ€‹stringย ยทย minLength: 1ย ยทย required

Material item name within the library.

Example: Steel(AS)
library
โ€‹stringย ยทย minLength: 1ย ยทย required

Library name.

Example: AustralianMaterials
id
โ€‹integer | nullย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647

Primary identifier - must be unique, no duplicates allowed. Optional - will be auto-assigned to next available number if not provided. If provided, must not already exist in the model.

Example: 1

Replace With Library Material โ€บ Responses

Material replaced

DTO for reading a material entity.
id
โ€‹integerย ยทย int32ย ยทย min: 1ย ยทย max: 2147483647ย ยทย required

Primary identifier - must be unique, no duplicates allowed. Range: 1 to int.MaxValue

Example: 1
name
โ€‹string | null

Material name.

youngsModulus
โ€‹numberย ยทย double

Young's modulus.

poissonsRatio
โ€‹numberย ยทย double

Poisson's ratio (unitless).

massDensity
โ€‹numberย ยทย double

Mass density.

thermalCoeff
โ€‹numberย ยทย double

Thermal expansion coefficient.

concreteStrength
โ€‹numberย ยทย double

Concrete compressive strength.

source
โ€‹PropertySourceย ยทย enum

Indicates whether a section or material was user-defined or imported from a library.

Enum values:
User
Library
library
โ€‹string | null

Library name. Empty for user-defined materials.