---
title: "Create or update resource and its children"
method: POST
path: "/inter-api/supos/resource/"
tags: ["supos/resource", "suposResource"]
---

# Create or update resource and its children

`POST /inter-api/supos/resource/`

## Request body

- SaveResourceReq
  - `children` SaveResourceReq[]
  - `code` string
  - `description` string
  - `editEnable` boolean
  - `enable` boolean
  - `fixed` boolean
  - `homeEnable` boolean
  - `icon` string
  - `id` string — 关键：允许 "123" 绑定到 int64
  - `name` string
  - `openType` integer
  - `parentId` string — 如果前端也把 parentId 当字符串传，建议一并加上
  - `routeSource` integer
  - `sort` integer
  - `source` string
  - `type` integer
  - `url` string
  - `urlType` integer

## Response `200`

A successful response.

- object
  - `code` integer
  - `msg` string

---

[API](https://skmtc.net/freezonex/apis/untitled-api.md) · [All operations](https://skmtc.net/freezonex/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/freezonex/untitled-api/revisions/1837fd35a283/schema)
