🤖 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 case groups


Get List

GET
/api/v1
/job/loads/load-case-groups

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

groups
​string

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

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

A load case group.
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

Group title.

loadCaseList
​string · minLength: 1 · required

Comma-separated list of load case numbers and ranges (e.g., "1,3,5-10").


Create

POST
/api/v1
/job/loads/load-case-groups

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 load case group.
title
​string · minLength: 1 · maxLength: 100 · required

Group title.

loadCaseList
​string · minLength: 1 · maxLength: 600 · pattern: ^[\d,\- ]+$ · required

Comma-separated list of load case numbers and ranges (e.g., "1,3,5-10"). Valid characters: digits, commas, hyphens, spaces.

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 › Responses

Created

A load case group.
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

Group title.

loadCaseList
​string · minLength: 1 · required

Comma-separated list of load case numbers and ranges (e.g., "1,3,5-10").


Get by Id

GET
/api/v1
/job/loads/load-case-groups/{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

A load case group.
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

Group title.

loadCaseList
​string · minLength: 1 · required

Comma-separated list of load case numbers and ranges (e.g., "1,3,5-10").


Update

PATCH
/api/v1
/job/loads/load-case-groups/{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 load case group. All fields optional for 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

Group title.

loadCaseList
​string | null · maxLength: 600 · pattern: ^[\d,\- ]+$

Comma-separated list of load case numbers and ranges (e.g., "1,3,5-10").

Update › Responses

OK

A load case group.
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

Group title.

loadCaseList
​string · minLength: 1 · required

Comma-separated list of load case numbers and ranges (e.g., "1,3,5-10").


Delete

DELETE
/api/v1
/job/loads/load-case-groups/{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 Group Cases

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

Gets the expanded list of load cases that belong to a group. Resolves the group's load case list (e.g., "1,3,5-10") against the actual load cases that exist in the current job. Returns full load case data including Id, title, type, notes, and guid.

Get Group Cases › path Parameters

id
​integer · int32 · required

The group Id

Get Group Cases › Responses

Returns the list of load cases in the group

​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.


Get Metadata

GET
/api/v1
/job/loads/load-case-groups/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/loads/load-case-groups/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/loads/load-case-groups/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 load case group.
title
​string · minLength: 1 · maxLength: 100 · required

Group title.

loadCaseList
​string · minLength: 1 · maxLength: 600 · pattern: ^[\d,\- ]+$ · required

Comma-separated list of load case numbers and ranges (e.g., "1,3,5-10"). Valid characters: digits, commas, hyphens, spaces.

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 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/loads/load-case-groups/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 load case group. All fields optional for 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

Group title.

loadCaseList
​string | null · maxLength: 600 · pattern: ^[\d,\- ]+$

Comma-separated list of load case numbers and ranges (e.g., "1,3,5-10").

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/loads/load-case-groups/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.