---
title: "Set a user's role at a point of sale"
method: PUT
path: "/api/company-roles/users/{utilizador_id}/pv-roles/{idpointofsale}"
tags: ["Company Roles"]
---

# Set a user's role at a point of sale

`PUT /api/company-roles/users/{utilizador_id}/pv-roles/{idpointofsale}`

## Request

- Base URL: `https://api.multigest.pt` (the document declares no server; this is the origin it was published from)
- URL: `https://api.multigest.pt/api/company-roles/users/{utilizador_id}/pv-roles/{idpointofsale}`
- Auth: API key in header `x-api-token` and API key in header `x-origin-verify`

## Path parameters

- `utilizador_id` integer, required
- `idpointofsale` integer, required

## Headers

- `x-api-token` string, nullable

## Request body

- PvRoleSet
  - `idrole` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-07** `e7e7ee8eb4fa`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/multigest/apis/multigest-protected-api/changes/api/company-roles/users/:utilizador_id/pv-roles/:idpointofsale/put.md)

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) - [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) - [OpenAPI document](https://skmtc.dev/multigest/apis/multigest-protected-api/revisions/75574126948d?raw)
