🤖 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

Load cases


Get List

GET
/api/v1
/job/loads/load-cases

Returns all load cases in the open job. Type is read-only and computed by SPACE GASS based on assigned loads (Primary, Combination, Step, Unused). Filter by type, by case-Id list, or by title substring. Results are sorted by Id ascending. Pagination metadata is returned in response headers (Total-Count, Offset, Limit). Pass Expand=all to hydrate combinationItems on combination cases (otherwise the hasCombinationItems indicator is populated but the array is omitted from the wire).

Get List › query Parameters

loadCases
​string

Load case Ids to filter by, in SG list format (e.g. "1,3-7,10"). Omit to return all load cases.

Example: 1,3-7,10
titleSearch
​string

Search text to filter by title (case-insensitive contains).

type
​LoadCaseType · enum

Filter by load case type (Primary, Combination, Step, Unused).

Type of load case in the structural model. Read-only — computed internally by SPACE GASS based on assigned loads.

Enum values:
Primary
Combination
Step
Unused
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 combination items on combination cases.

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

Returns the list of load cases

​LoadCase[]
A load case. Returns all load cases including primary, combination, and step types. When `Type` is `Combination`, the case owns a list of combination items (hydrated inline via `?expand=all`).
id
​integer · int32 · min: 1 · max: 2147483647 · required

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

Example: 1
title
​string · minLength: 1 · required

Load case title.

Example: Dead Load
notes
​string | null

Load case notes (supports multi-line text).

Example: Self-weight of structural steel members
type
​LoadCaseType · enum

Type of load case in the structural model. Read-only — computed internally by SPACE GASS based on assigned loads.

Enum values:
Primary
Combination
Step
Unused
hasCombinationItems
​boolean

True when this case has at least one combination item defined. Only meaningful for cases where Type is Combination. Use ?expand=all to include the full combinationItems array.

​array | null

The combination items (component case + multiplying factor rows) that make up this case. Populated only when ?expand=all is passed AND hasCombinationItems is true; omitted from the wire otherwise.


Create

POST
/api/v1
/job/loads/load-cases

Creates a new load case. The case is initially type Unused until loads are assigned to it (or until combination items are added via POST /combination-load-cases, which creates the case as type Combination).

Create › Request Body

DTO for creating a new load case.
title
​string · minLength: 1 · maxLength: 100 · required

Load case title.

Example: Dead Load
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
notes
​string | null · maxLength: 2048

Load case notes (supports multi-line text).

Example: Self-weight of structural steel members

Create › Responses

Load case created

A load case. Returns all load cases including primary, combination, and step types. When `Type` is `Combination`, the case owns a list of combination items (hydrated inline via `?expand=all`).
id
​integer · int32 · min: 1 · max: 2147483647 · required

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

Example: 1
title
​string · minLength: 1 · required

Load case title.

Example: Dead Load
notes
​string | null

Load case notes (supports multi-line text).

Example: Self-weight of structural steel members
type
​LoadCaseType · enum

Type of load case in the structural model. Read-only — computed internally by SPACE GASS based on assigned loads.

Enum values:
Primary
Combination
Step
Unused
hasCombinationItems
​boolean

True when this case has at least one combination item defined. Only meaningful for cases where Type is Combination. Use ?expand=all to include the full combinationItems array.

​array | null

The combination items (component case + multiplying factor rows) that make up this case. Populated only when ?expand=all is passed AND hasCombinationItems is true; omitted from the wire otherwise.


Get by Id

GET
/api/v1
/job/loads/load-cases/{id}

Gets a single load case by Id. Expand defaults to all, which hydrates combinationItems for combination cases; pass Expand=none to suppress.

Get by Id › path Parameters

id
​integer · int32 · required

The load case Id

Get by Id › query Parameters

expand
​ExpandOption · enum

Sub-resource expansion. Defaults to all.

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

Returns the load case

A load case. Returns all load cases including primary, combination, and step types. When `Type` is `Combination`, the case owns a list of combination items (hydrated inline via `?expand=all`).
id
​integer · int32 · min: 1 · max: 2147483647 · required

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

Example: 1
title
​string · minLength: 1 · required

Load case title.

Example: Dead Load
notes
​string | null

Load case notes (supports multi-line text).

Example: Self-weight of structural steel members
type
​LoadCaseType · enum

Type of load case in the structural model. Read-only — computed internally by SPACE GASS based on assigned loads.

Enum values:
Primary
Combination
Step
Unused
hasCombinationItems
​boolean

True when this case has at least one combination item defined. Only meaningful for cases where Type is Combination. Use ?expand=all to include the full combinationItems array.

​array | null

The combination items (component case + multiplying factor rows) that make up this case. Populated only when ?expand=all is passed AND hasCombinationItems is true; omitted from the wire otherwise.


Update

PATCH
/api/v1
/job/loads/load-cases/{id}

Partially updates a load case (title, notes). Only fields supplied in the body are changed; omitted fields are left as-is.

Update › path Parameters

id
​integer · int32 · required

The load case Id

Update › Request Body

DTO for updating an existing load case. 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
title
​string | null · maxLength: 100

Load case title.

Example: Dead Load (revised)
notes
​string | null · maxLength: 2048

Load case notes (supports multi-line text).

Example: Updated to include cladding self-weight

Update › Responses

Returns the updated load case

A load case. Returns all load cases including primary, combination, and step types. When `Type` is `Combination`, the case owns a list of combination items (hydrated inline via `?expand=all`).
id
​integer · int32 · min: 1 · max: 2147483647 · required

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

Example: 1
title
​string · minLength: 1 · required

Load case title.

Example: Dead Load
notes
​string | null

Load case notes (supports multi-line text).

Example: Self-weight of structural steel members
type
​LoadCaseType · enum

Type of load case in the structural model. Read-only — computed internally by SPACE GASS based on assigned loads.

Enum values:
Primary
Combination
Step
Unused
hasCombinationItems
​boolean

True when this case has at least one combination item defined. Only meaningful for cases where Type is Combination. Use ?expand=all to include the full combinationItems array.

​array | null

The combination items (component case + multiplying factor rows) that make up this case. Populated only when ?expand=all is passed AND hasCombinationItems is true; omitted from the wire otherwise.


Delete

DELETE
/api/v1
/job/loads/load-cases/{id}

Removes the title, notes and metadata for the load case. Does not delete the actual loads assigned to the case or its combination items — the case may still appear in listings if it has loads assigned to it.

Delete › path Parameters

id
​integer · int32 · required

The load case Id

Delete › Responses

Load case deleted

No data returned

Get Metadata

GET
/api/v1
/job/loads/load-cases/metadata

Returns the schema for a load case: field definitions, units resolved against current job units, and allowed values for enum fields (e.g. type).

Get Metadata › Responses

Returns load case schema metadata

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.


Get Next Id

GET
/api/v1
/job/loads/load-cases/next

Returns the next available (unused) load case Id, starting from start.

Get Next Id › query Parameters

start
​integer · int32

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

Default: 1

Get Next Id › Responses

Returns the next available load case Id

integer · int32

Create Bulk

POST
/api/v1
/job/loads/load-cases/bulk

Creates multiple load cases in a single request. Validation runs upfront on the whole request; if any item fails and continueOnError is false (default), the entire request is rejected. With continueOnError=true, valid items are created and failures are reported per-item in the response.

Create Bulk › query Parameters

continueOnError
​boolean

If true, process valid items even when some fail. Default: false.

Default: false

Create Bulk › Request Body

DTO for creating a new load case.
title
​string · minLength: 1 · maxLength: 100 · required

Load case title.

Example: Dead Load
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
notes
​string | null · maxLength: 2048

Load case notes (supports multi-line text).

Example: Self-weight of structural steel members

Create Bulk › Responses

Returns the bulk result (check the errors array for partial failures)

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/loads/load-cases/bulk

Partially updates multiple load cases. Each item must include its id. Validation runs upfront; with continueOnError=false (default) any failure rejects the whole request. With continueOnError=true, valid items are updated and failures are reported per-item.

Update Bulk › query Parameters

continueOnError
​boolean

If true, process valid items even when some fail. Default: false.

Default: false

Update Bulk › Request Body

DTO for updating an existing load case. 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
title
​string | null · maxLength: 100

Load case title.

Example: Dead Load (revised)
notes
​string | null · maxLength: 2048

Load case notes (supports multi-line text).

Example: Updated to include cladding self-weight

Update Bulk › Responses

Returns the bulk result

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/loads/load-cases/bulk

Deletes multiple load cases by Id. The body is a JSON array of integer Ids (e.g. [1, 5, 10]). As with DELETE /{id}, this removes the title/notes/metadata only — assigned loads and combination items are preserved.

Delete Bulk › query Parameters

continueOnError
​boolean

If true, continue processing remaining Ids after a failure. Default: false.

Default: false

Delete Bulk › Request Body

​integer[]

Delete Bulk › Responses

Returns the bulk result

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.