πŸ€– New in SPACE GASS 14.51 β€” the MCP server lets your AI agent build, analyse and design your models. Get started β†’
SpaceGass API
Getting Started

Using the SDK

Want to generate your own client? These SDKs are generated from the OpenAPI spec at https://api.spacegass.com/docs/api/1/schema.json β€” feed that file to Kiota, OpenAPI Generator, or an LLM to produce a typed client in any language.

If you are new to web APIs, the SDK calls and HTTP examples in this documentation can feel jargon-heavy. This page is a quick reference for the terms you will see repeatedly β€” what they actually mean, and how they map to engineering terms you already know.

The REST verbs

The API uses standard HTTP verbs. Each one has a consistent meaning:

VerbWhat it means in plain EnglishSDK call ends in…
GETRead something β€” fetch a value without changing anythingGetAsync()
POSTCreate a new thing β€” add a node, member, load case, etc.PostAsync(...)
PATCHUpdate an existing thing in place β€” change one or two propertiesPatchAsync(...)
PUTReplace an existing thing wholesale β€” replace its entire statePutAsync(...)
DELETERemove an existing thingDeleteAsync()

So client.Job.Structure.Nodes.PostAsync(...) reads as "post (create) a new node", and client.Job.Structure.Nodes[5].DeleteAsync() reads as "delete the node with Id 5".

The Async suffix and await

Every SDK call ends in Async (in C#) or is awaited (in Python):

var node = await client.Job.Structure.Nodes.PostAsync(new NodeCreate { ... });

The Async / await machinery is there because the API is reached over the network. Your code does not freeze the program while it waits for a response β€” it lets the rest of your application keep working until the result comes back. For day-to-day use you can read await foo as "do foo and give me the result"; the rest is plumbing.

In C#, the Async suffix is a naming convention β€” every method that returns a Task is suffixed Async so it is obvious from the method name that you must await it.

Request and response bodies

Most POST, PATCH, and PUT calls take a body β€” the data you are sending up. The SDK exposes this as a strongly-typed object:

  • NodeCreate β€” the shape of the body when creating a node
  • MemberDistributedLoadCreate β€” the body when creating a distributed load
  • SectionUpdate β€” the body when patching a section's properties

A *Create model has all the fields you can set on creation; a *Update model is the same shape but every field is optional, so you only need to set the ones you want to change.

Path parameters and query parameters

When you see /job/structure/nodes/{id}, the {id} is a path parameter β€” replaced with the actual value you want, e.g. 5. The SDK exposes this as a typed indexer:

await client.Job.Structure.Nodes[5].GetAsync();

Anything after a ? in a URL is a query parameter β€” used for filtering, pagination, and similar options. The SDK exposes them as typed properties on a configuration object:

await client.Job.Query.Analysis.Static.NodeReactions.GetAsync(config => { config.QueryParameters.LoadCases = "1,3-7"; config.QueryParameters.Nodes = "10-12"; });

See the Filtering & Querying guide for the full SG list-string filter syntax.

Status codes

Every response carries an HTTP status code. The ones you will see in practice:

CodeMeaning
200OK β€” your read worked
201Created β€” your new entity was saved
204No Content β€” your delete or update worked, no data to return
400Bad Request β€” the body you sent was invalid; check the detail field
404Not Found β€” the entity (or file) does not exist
409Conflict β€” the operation clashes with current state (e.g. file already open)
500Server Error β€” the API ran into trouble; please report it via Support

The SDK clients turn non-2xx responses into typed exceptions (ApiException in C#, APIError in Python). See Error Handling for the patterns.

Last modified on