# Connecting Client to a resource server with Management API

**URL:** <https://community.auth0.com/t/connecting-client-to-a-resource-server-with-management-api/97376>\
**Category:** Get Help\
**Tags:** managment-api-v2, auth0\
**Created:** [January 3, 2023, 9:26am UTC](https://community.auth0.com/t/connecting-client-to-a-resource-server-with-management-api/97376 "2023-01-03T09:26:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![2mm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/2mm/32/33197_2.png) [@2mm](https://community.auth0.com/u/2mm)\
**Post date:** [January 3, 2023, 9:26am UTC](https://community.auth0.com/t/connecting-client-to-a-resource-server-with-management-api/97376/1 "2023-01-03T09:26:27Z")

</div>

When automating the creation of M2M applications what is the correct way to assign a resource server for this new application, as there is no resource server in the POST /api/v2/clients body schema?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 9, 2023, 9:32pm UTC](https://community.auth0.com/t/connecting-client-to-a-resource-server-with-management-api/97376/3 "2023-01-09T21:32:57Z")

</div>

Hi @2mm,

Welcome to the Auth0 Community!

You are looking for the `/client-grants` endpoints.

> **[Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Client_Grants/get_client_grants)**

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 23, 2023, 9:33pm UTC](https://community.auth0.com/t/connecting-client-to-a-resource-server-with-management-api/97376/4 "2023-01-23T21:33:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
