Method: tunedModels.permissions.create

Create a permission to a specific resource.

HTTP request

POST https://generativelanguage.googleapis.com/v1beta3/{parent=tunedModels/*}/permissions

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource of the Permission. Format: tunedModels/{tunedModel}

Request body

The request body contains an instance of Permission.

Response body

If successful, the response body contains a newly created instance of Permission.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/generative-language

For more information, see the Authentication Overview.