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

# Create App Resource

`POST /v2/app-resources`

Create a new app resource for an app instance.

## Request body

- SvflowPublicapiCreateAppResourceRequest
  - `appInstanceId` string, required — The ID of the app instance.
  - `resourceType` string, required — The type of the resource.
  - `name` string, required — The name of the resource.
  - `description` string — A description of the resource.
  - `externalId` string, nullable — The external ID of the resource (optional).
  - `owners` SvflowPubapimodelsOwnerTarget[] — Owners (users/groups) to set on the created resource (optional).
    - `targetId` string — The ID of the owner (user or group).
    - `targetType` 'ACCESS_RELATIONSHIP_TARGET_TYPE_UNSPECIFIED' | 'ACCESS_RELATIONSHIP_TARGET_TYPE_USER' | 'ACCESS_RELATIONSHIP_TARGET_TYPE_GROUP'

## Response `200`

Success

- SvflowPublicapiCreateAppResourceResponse
  - `data` SvflowPubapimodelsResource
    - `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)
