---
title: "Accept authority and set credentials to sector user"
method: PUT
path: "/v1.0/sector-users/registration/accept-authority-and-set-credentials-to-sector-user"
tags: ["Sector Users registration"]
---

# Accept authority and set credentials to sector user

`PUT /v1.0/sector-users/registration/accept-authority-and-set-credentials-to-sector-user`

## Request

- Base URL: `http://localhost:8082/api`
- URL: `http://localhost:8082/api/v1.0/sector-users/registration/accept-authority-and-set-credentials-to-sector-user`
- Auth: HTTP bearer

## Request body

- InvitedUserCredentialsDTO: The operator user credentials
  - `invitationToken` string, required
  - `password` string, required

## Response `204`

No Content

- SectorUserDTO
  - `email` string, required
  - `firstName` string, required
  - `lastName` string, required
  - `status` 'REGISTERED' | 'PENDING' | 'DELETED'
  - `jobTitle` string
  - `phoneNumber` PhoneNumberDTO
    - `countryCode` string
    - `number` string
  - `mobileNumber` PhoneNumberDTO
    - `countryCode` string
    - `number` string

## Other responses

- `400`: Bad Request Error Code | Description USER1003 | User is already registered with different role USER1004 | User status is not valid AUTHORITY1005 | User status cannot be updated CCAAUTHORITY1003 | Authority already exists for a different role type than sector user EMAIL1001 | The verification link has expired TOKEN1001 | Invalid Token FORM1001 | Form validation failed
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2024-10-21** `a06468704cbe`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/beis/apis/api-documentation/changes/v1.0/sector-users/registration/accept-authority-and-set-credentials-to-sector-user/put.md)

---

[API](https://skmtc.dev/beis/apis/api-documentation.md) - [All operations](https://skmtc.dev/beis/apis/api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/beis/apis/api-documentation/revisions/2da910b8e923?raw)
