PATCH
/
cloud
/
v1
/
users
/
assignments
/
{assignment_id}
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
role_assignment_update_delete = client.cloud.users.role_assignments.update(
    assignment_id=123,
    role="ClientAdministrator",
    user_id=777,
)
print(role_assignment_update_delete.assignment_id)
{
  "assignment_id": 12
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

assignment_id
integer
required

Assignment ID

Examples:

123

Body

application/json

Response

200 - application/json

OK

The response is of type object.