---
title: "Associate resources to a resource group"
method: POST
path: "/restapi/json/v1/resourcegroup/{groupId}/associateResources"
tags: ["Resource Groups"]
---

# Associate resources to a resource group

`POST /restapi/json/v1/resourcegroup/{groupId}/associateResources`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/resourcegroup/{groupId}/associateResources`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/resourcegroup/:groupId/associateResources/post.ts> (a function with typed inputs; its response is checked against the schema)

Associates one or more resources to the specified resource group by ID.

## Path parameters

- `groupId` integer, required

## Headers

- `orgName` string

## Request body `application/x-www-form-urlencoded`

- ResourceIdsRequest
  - `INPUT_DATA` object, required
    - `operation` object, required
      - `Details` object, required
        - `RESOURCEIDS` integer[], required

## Response `200`

Resources associated

- AssociateResourcesResponse
  - `operation` object
    - `result` OperationResult
      - `message` string: Result message describing the operation outcome
      - `status` string: Operation status
    - `Details` object
    - `name` string

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
