Skip to main content

Assign a list of roles to one identity. Replaces existing assignments if any.

PATCH 

https://data-v2.novorender.com/roles/assignments

Assigns (replaces) roles to a user identity within an optional organization or project context

Request

Responses

OK

Authorization: oauth2

name: oauth2type: oauth2flows: {
  "authorizationCode": {
    "authorizationUrl": "https://auth.novorender.com/auth",
    "tokenUrl": "https://auth.novorender.com/token",
    "scopes": {}
  }
}
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Patch, "https://data-v2.novorender.com/roles/assignments");
request.Headers.Add("Accept", "text/plain");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"identity\": \"string\",\n \"roleIds\": [\n \"string\"\n ],\n \"roleAssignments\": [\n {\n \"roleId\": \"string\",\n \"expirationTime\": \"2024-07-29T15:51:28.071Z\"\n }\n ],\n \"scope\": {\n \"organizationId\": \"string\",\n \"projectId\": \"string\",\n \"resourcePath\": \"string\",\n \"resourceType\": \"string\",\n \"viewerSceneId\": \"string\"\n },\n \"identityType\": \"string\",\n \"identityName\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://data-v2.novorender.com
Auth
Body
{
  "identity": "string",
  "roleIds": [
    "string"
  ],
  "roleAssignments": [
    {
      "roleId": "string",
      "expirationTime": "2024-07-29T15:51:28.071Z"
    }
  ],
  "scope": {
    "organizationId": "string",
    "projectId": "string",
    "resourcePath": "string",
    "resourceType": "string",
    "viewerSceneId": "string"
  },
  "identityType": "string",
  "identityName": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!