Category: Query
Entity: StructAttribute
Base URL: local http://localhost:1317; public testnet https://public.testnet.structs.network
Base Path: /structs
HP and numeric status live here, not on the base struct row. See integration-notes — Where struct HP and status live. Webapp: struct-attribute.md.
| Method | Path | Description | Auth | Paginated |
|---|---|---|---|---|
| GET | /structs/struct_attribute/{structId}/{attributeType} |
Get one attribute | No | No |
| GET | /structs/struct_attribute |
List all struct attributes | No | Yes |
CLI: struct-attribute · struct-attribute-all
GET /structs/struct_attribute/{structId}/{attributeType}
| Name | Type | Required | Description |
|---|---|---|---|
| structId | string | Yes | Struct id (5-n) |
| attributeType | string | Yes | Attribute name (e.g. health, status) |
A missing row means no value stored (often treat as 0), not a 404 for “zero HP.”
GET /structs/struct_attribute