API Method: POST /api/subProfiles/restore
/api/subProfiles/restore
**Description:**This endpoint restores a previously removed or deactivated authorized sub-user in the system. Sub-users are individuals with limited access under a primary user or company account (e.g., employees, team members). When a sub-user is deleted or disabled—for example, due to inactivity, role changes, or disciplinary actions—they can be brought back using this restore operation.
This is especially useful in organizational settings where team structures change frequently, and previously removed users may need to regain access without recreating them from scratch.
Only users with the necessary administrative privileges (e.g., Owner or Partner) can perform this action.
Request:
-
Method: POST
-
Endpoint:
https://api.banking.netevia.dev/api/subProfiles/restore
-
Headers:
Authorization
: Bearer<access_token>
(required)Content-Type
:application/json
Query Parameters:
id
(int32, required) – The unique ID of the sub-user (authorized user) to be restored.
Response:
- Status Code: 200 OK
- Content Type:
application/json
Error Responses:
- 400 Bad Request – Missing or invalid
id
parameter - 401 Unauthorized – Authentication token is missing or invalid
- 403 Forbidden – User does not have permission to restore sub-users
- 404 Not Found – No deleted/inactive sub-user found with the given ID
- 500 Internal Server Error – Server error during restore operation
**Use Case Example:**An employee who was temporarily deactivated returns to the company. Rather than creating a new profile, the admin calls this endpoint with the user’s original ID to restore access to their sub-user account.