Check a username and document-number prefix.
POST/api/v1/users/check-prefixusers:admin
Says whether a prefix may be used: not empty, short enough, free of slashes and control characters, and not already a username or a document-number prefix (compared ignoring case).
| Scope | users:admin (sensitive) |
| Asynchronous | No |
| MCP tool | check_user_prefix |
| Portal permissions | create_users |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Docwize-Version | header | string (date) | Optional |
Request body
| Content type | Type |
|---|---|
application/json | UserCheckPrefixInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json PrefixCheck |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
PrefixCheck
| Field | Type | Required | Description |
|---|---|---|---|
available | boolean | Required | |
prefix | string | Required | |
reason | string | Required | available, empty, too_long, invalid_characters or in_use. |
UserCheckPrefixInput
| Field | Type | Required | Description |
|---|---|---|---|
prefix | string | Required | The username and document-number prefix to check. |