---
title: "Batch Create App Resources"
method: POST
path: "/v2/app-resources/batch"
tags: ["App Resource API"]
---

# Batch Create App Resources

`POST /v2/app-resources/batch`

Create multiple app resources for an app instance in a single request.

## Request body

- SvflowPublicapiBatchCreateAppResourcesRequest
  - `appInstanceId` string — The ID of the app instance to create resources under.
  - `resources` SvflowPublicapiCreateAppResourceInput[] — The resources to create.
    - `resourceType` string — The type of the resource.
    - `name` string — The name of the resource.
    - `description` string — A description of the resource.
    - `externalId` string, nullable — The external ID of the resource (optional).

## Response `200`

Success

- SvflowPublicapiBatchCreateAppResourcesResponse
  - `data` SvflowPubapimodelsResource[] — The created resources.
    - `id` string — The ID of the resource.
    - `appInstanceId` string — The ID of the app instance that the resource belongs to.
    - `resourceType` string — The type of the resource.
    - `name` string — The name of the resource.
    - `description` string, nullable — A description of the resource.
    - `externalId` string, nullable — The external ID of the resource.
    - `tagIds` string[] — IDs of the tags currently attached to this resource.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/serval/apis/serval-public-api.md) · [All operations](https://skmtc.net/serval/apis/serval-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/serval/serval-public-api/versions/0549515e9384/schema)
