---
title: "Blog resource group"
method: POST
path: "/api/blog/{namespace}/{slug}/resource-group"
tags: ["blogs"]
---

# Blog resource group

`POST /api/blog/{namespace}/{slug}/resource-group`

Assign, move, or unassign an organization-owned blog to a resource group. Pass null to unassign. User-owned blogs are not eligible.

## Path parameters

- `namespace` string, required
- `slug` string, required

## Request body

- object
  - `resourceGroupId` string, nullable, required — The resource group to assign the blog to. If null, the blog is removed from any resource group.

## Response `200`

The blog and its resource group after the assignment

- object
  - `resourceGroupId` string, nullable, required — A hex string of 24 characters representing an ObjectId.
  - `id` string, required — A hex string of 24 characters representing an ObjectId.
  - `slug` string, required
  - `title` string, required
  - `private` boolean, required
  - `addedBy` string, required

## Changes

- **2026-09-04** `992cb5f88d8e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/api/blog/:namespace/:slug/resource-group/post.md)

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingface/apis/hub-api-endpoints/revisions/b88d4a4da99f?raw)
