---
updatedAt: 2026-08-28T08:35:13.000Z
agentTools:
  projectIndex: https://developers.airsaas.io/llms.txt
---

# Reorder the workspace catalog

Shared write behavior for gain nature, unit, and unit type catalogs.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "API Endpoints",
    "version": "1.0 (v1)",
    "description": "API to access AirSaas resources"
  },
  "paths": {
    "/v1/gain_units/reorder/": {
      "post": {
        "operationId": "gain_units_reorder_create",
        "description": "Shared write behavior for gain nature, unit, and unit type catalogs.",
        "summary": "Reorder the workspace catalog",
        "tags": [
          "gain_units"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GainSettingsReorderRequest"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/GainSettingsReorderRequest"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/GainSettingsReorderRequest"
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "apiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GainUnitPublicAPI"
                },
                "examples": {
                  "Example1": {
                    "value": {
                      "id": "11111111-2222-3333-4444-555555555555",
                      "name": "Euro",
                      "name_en": "Euro",
                      "name_fr": "Euro",
                      "name_es": "Euro",
                      "description": "Euro currency",
                      "description_en": "Euro currency",
                      "description_fr": "Monnaie euro",
                      "description_es": "Moneda euro",
                      "code": "eur",
                      "position": 0,
                      "is_native": true,
                      "symbol": "€",
                      "symbol_position": "postfix",
                      "gain_unit_type": "11111111-2222-3333-4444-555555555554",
                      "scale_options": []
                    },
                    "summary": "OK"
                  }
                }
              }
            },
            "description": ""
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GainSettingsReorderRequest": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "required": [
          "ids"
        ]
      },
      "GainUnitPublicAPI": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "name_en": {
            "type": "string",
            "nullable": true,
            "title": "Name [en]",
            "maxLength": 100
          },
          "name_fr": {
            "type": "string",
            "nullable": true,
            "title": "Name [fr]",
            "maxLength": 100
          },
          "name_es": {
            "type": "string",
            "nullable": true,
            "title": "Name [es]",
            "maxLength": 100
          },
          "description": {
            "type": "string",
            "maxLength": 200
          },
          "description_en": {
            "type": "string",
            "nullable": true,
            "title": "Description [en]",
            "maxLength": 200
          },
          "description_fr": {
            "type": "string",
            "nullable": true,
            "title": "Description [fr]",
            "maxLength": 200
          },
          "description_es": {
            "type": "string",
            "nullable": true,
            "title": "Description [es]",
            "maxLength": 200
          },
          "code": {
            "type": "string",
            "maxLength": 64
          },
          "position": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0
          },
          "is_native": {
            "type": "boolean"
          },
          "symbol": {
            "type": "string",
            "maxLength": 20
          },
          "symbol_position": {
            "$ref": "#/components/schemas/SymbolPositionEnum"
          },
          "gain_unit_type": {
            "type": "string",
            "readOnly": true
          },
          "scale_options": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "required": [
          "code",
          "name",
          "symbol"
        ]
      },
      "SymbolPositionEnum": {
        "enum": [
          "prefix",
          "postfix"
        ],
        "type": "string"
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Token-based authentication with required prefix \"Api-Key\""
      }
    }
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "node",
      "python"
    ]
  },
  "servers": [
    {
      "url": "https://api.airsaas.io"
    }
  ]
}
```