---
title: "Promote a stack profile one level up (workspace→org or project→workspace)"
method: PATCH
path: "/tools/v1/stack-profiles/{profile_id}/promote"
tags: ["curated-stack-profiles"]
---

# Promote a stack profile one level up (workspace→org or project→workspace)

`PATCH /tools/v1/stack-profiles/{profile_id}/promote`

## Request

- Base URL: `https://api.qualityclouds.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.qualityclouds.ai/tools/v1/stack-profiles/{profile_id}/promote`
- Auth: one of:
  - HTTP bearer
  - OpenID Connect (`https://account.qualityclouds.com//realms/ai-production/.well-known/openid-configuration`)

Re-scope the profile upward; project→workspace creates a project fork for the origin repo.

## Path parameters

- `profile_id` string, uuid, required

## Request body

- PromoteStackProfileBody: Body: target_scope plus exactly one of target_org_id / target_workspace_id.
  - `target_scope` 'org' | 'workspace', required
  - `target_org_id` string, uuid, nullable
  - `target_workspace_id` string, uuid, nullable

## Response `200`

Successful Response

- CuratedStackProfileResponse: Response body for a single curated stack profile.
  - `id` string, uuid, required
  - `name` string, required
  - `scope_type` 'global' | 'org' | 'workspace' | 'project', required: Four-level scope hierarchy for curated stack profiles.
  - `is_default` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `description` string, nullable
  - `parent_id` string, uuid, nullable
  - `created_by` string, nullable
  - `org_id` string, uuid, nullable
  - `workspace_id` string, uuid, nullable
  - `repository_id` string, nullable

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Validation Error

---

[API](https://skmtc.dev/qualityclouds/apis/qai-orchestrator-api.md) · [All operations](https://skmtc.dev/qualityclouds/apis/qai-orchestrator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/qualityclouds/apis/qai-orchestrator-api/revisions/250c849925af?raw)
