I want to authorize app for api through auth0 management api, How Can I achieve this?

Basically I have written wrapper over management api where I am trying to authorize auth0 application for specific api through management api. Below request I am trying:
PATCH : {{auth0_url}}api/v2/resource-servers/{{api_id}}

Request Body:
{
“name”: “ZZZZZZ”,
“client”:{
“client_id”: “XXXXXXXXX”,
“grant_types”: [
“client_credentials”
]
}
}

In above request, response I get :
{
“statusCode”: 400,
“error”: “Bad Request”,
“message”: “Payload validation error: ‘Additional properties not allowed: client’.”,
“errorCode”: “invalid_body”
}

In documentation, “client” is mentioned for request payload. If I dont pass client tag, then request works fine. I m passing app details in client tag for which I need to provide api authorization.

Thanks In advance

Sure I will try this. Thanks for quick reply