🤖 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 categories


Get List

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

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

categories
​string

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

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

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

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 category used to group load cases (e.g. dead, live, wind). Includes read-only audit fields (Source, Version, Username) set automatically by the application.
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

Category title.

source
​string | null

Source (read-only, set automatically by the application).

version
​string | null

Version (read-only, set automatically by the application).

username
​string | null

Username (read-only, set automatically by the application).

notes
​string | null

Notes (supports multi-line text).


Create

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

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 category. Read-only fields (Source, Version, Username) are excluded.
title
​string · minLength: 1 · maxLength: 100 · required

Category title.

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

Notes (supports multi-line text).

Create › Responses

Created

A load category used to group load cases (e.g. dead, live, wind). Includes read-only audit fields (Source, Version, Username) set automatically by the application.
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

Category title.

source
​string | null

Source (read-only, set automatically by the application).

version
​string | null

Version (read-only, set automatically by the application).

username
​string | null

Username (read-only, set automatically by the application).

notes
​string | null

Notes (supports multi-line text).


Get by Id

GET
/api/v1
/job/loads/load-categories/{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 category used to group load cases (e.g. dead, live, wind). Includes read-only audit fields (Source, Version, Username) set automatically by the application.
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

Category title.

source
​string | null

Source (read-only, set automatically by the application).

version
​string | null

Version (read-only, set automatically by the application).

username
​string | null

Username (read-only, set automatically by the application).

notes
​string | null

Notes (supports multi-line text).


Update

PATCH
/api/v1
/job/loads/load-categories/{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 category. All fields optional for partial updates. Read-only fields excluded.
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

Category title.

notes
​string | null · maxLength: 2048

Notes (supports multi-line text).

Update › Responses

OK

A load category used to group load cases (e.g. dead, live, wind). Includes read-only audit fields (Source, Version, Username) set automatically by the application.
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

Category title.

source
​string | null

Source (read-only, set automatically by the application).

version
​string | null

Version (read-only, set automatically by the application).

username
​string | null

Username (read-only, set automatically by the application).

notes
​string | null

Notes (supports multi-line text).


Delete

DELETE
/api/v1
/job/loads/load-categories/{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/loads/load-categories/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-categories/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-categories/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 category. Read-only fields (Source, Version, Username) are excluded.
title
​string · minLength: 1 · maxLength: 100 · required

Category title.

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

Notes (supports multi-line text).

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-categories/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 category. All fields optional for partial updates. Read-only fields excluded.
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

Category title.

notes
​string | null · maxLength: 2048

Notes (supports multi-line text).

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-categories/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.