---
title: "Assigns or updates a specific permission for a role within the current company. Only users with the FullAdmin role are authorized to perform this action."
method: POST
path: "/api/companies/current/setroleandpermission"
tags: ["Companies"]
---

# Assigns or updates a specific permission for a role within the current company. Only users with the FullAdmin role are authorized to perform this action.

`POST /api/companies/current/setroleandpermission`

## Request body

- IntectWebAPIControllersDTORolePermissionDTO
  - `Name` string
  - `ValueId` integer
  - `CanLogin` boolean, nullable
  - `CanFinalize` boolean, nullable

## Response `200`

OK

- SystemWebHttpResultsOkResult
  - `Request` object

---

[API](https://skmtc.dev/intect/apis/intect-rest-api.md) · [All operations](https://skmtc.dev/intect/apis/intect-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/intect/intect-rest-api/revisions/e256dcb495d4/schema)
