Field workers
Field workers: 24 operations, tagged field-workers in the OpenAPI document.
| Method | Path | Summary |
|---|---|---|
GET |
/api/field-workers |
Search a client’s field workers |
POST |
/api/field-workers |
Ensure a field worker exists for (client, workerCode) and grant applications; without a workerCode the platform generates one |
POST |
/api/field-workers/badges |
Issue badges for up to 200 field workers at once (for printing a sheet); all or nothing |
GET |
/api/field-workers/{id} |
Get a field worker |
PUT |
/api/field-workers/{id} |
Update a field worker’s name, email and phone |
DELETE |
/api/field-workers/{id} |
Delete a field worker (revokes their sessions first) |
POST |
/api/field-workers/{id}/activate |
Reactivate a suspended field worker |
POST |
/api/field-workers/{id}/apps |
Grant a field worker access to an application |
DELETE |
/api/field-workers/{id}/apps/{appCode} |
Revoke a field worker’s access to an application (and that application’s sessions) |
GET |
/api/field-workers/{id}/badges |
A field worker’s badges, newest first (never the token) |
POST |
/api/field-workers/{id}/badges |
Issue a printed QR badge for a field worker (the token is shown once; earlier active badges are revoked) |
POST |
/api/field-workers/{id}/badges/{badgeId}/revoke |
Revoke a field worker’s badge |
PUT |
/api/field-workers/{id}/link |
Link a field worker to a platform user (audit correlation only; grants nothing) |
DELETE |
/api/field-workers/{id}/link |
Remove a field worker’s platform user link |
GET |
/api/field-workers/{id}/photo |
A field worker’s photo (the image) |
PUT |
/api/field-workers/{id}/photo |
Set or replace a field worker’s photo |
DELETE |
/api/field-workers/{id}/photo |
Remove a field worker’s photo |
POST |
/api/field-workers/{id}/pin-reset |
Reset a field worker’s PIN (a temporary PIN is returned once when none is supplied) |
POST |
/api/field-workers/{id}/sign-in-codes |
Create a single-use code that signs the worker in to an application on any device (impersonation) |
GET |
/api/field-workers/{id}/sign-ins |
A field worker’s sign-in attempts, newest first |
POST |
/api/field-workers/{id}/suspend |
Suspend a field worker and revoke their sessions |
POST |
/api/field-workers/{id}/unlock |
Clear a field worker’s soft and hard locks |
GET |
/api/field-workers/{id}/unlock-keys |
A field worker’s unlock keys (biometric sign-in on a personal device), newest first, live and revoked |
POST |
/api/field-workers/{id}/unlock-keys/{unlockKeyId}/revoke |
Revoke a field worker’s unlock key and end the sessions it signed in (on a revoked key, end the sessions it left) |
Operations
Section titled “Operations”GET /api/field-workers
Section titled “GET /api/field-workers”Search a client’s field workers
Operation ID: listFieldWorkers
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
clientId |
query | string | no | Tenant client whose workers to list: a clt_ id or the client’s identifier |
q |
query | string | no | Case-insensitive prefix matched against name and worker code |
appCode |
query | string | no | Only workers granted this application |
status |
query | string | no | Only workers in this state One of: ACTIVE, DISABLED. |
isTest |
query | string | no | Only test identities (true) or only real workers (false) One of: true, false. |
linkedPrincipalId |
query | string | no | Only the worker linked to this platform user |
page |
query | integer (int64) | no | 0-based page index (default 0) |
pageSize |
query | integer (int64) | no | Page size (default 100, max 1000) |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldWorkerListResponse |
default |
Error | application/json ErrorModel |
POST /api/field-workers
Section titled “POST /api/field-workers”Ensure a field worker exists for (client, workerCode) and grant applications; without a workerCode the platform generates one
Operation ID: ensureFieldWorker
Request body (required)
| Content type | Schema |
|---|---|
application/json |
EnsureFieldWorkerRequest |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created | application/json FieldWorkerResponse |
default |
Error | application/json ErrorModel |
POST /api/field-workers/badges
Section titled “POST /api/field-workers/badges”Issue badges for up to 200 field workers at once (for printing a sheet); all or nothing
Operation ID: issueFieldWorkerBadges
Request body (required)
| Content type | Schema |
|---|---|
application/json |
BulkIssueFieldBadgesRequest |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created | application/json BulkIssueFieldBadgesResponse |
default |
Error | application/json ErrorModel |
GET /api/field-workers/{id}
Section titled “GET /api/field-workers/{id}”Get a field worker
Operation ID: getFieldWorker
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldWorkerResponse |
default |
Error | application/json ErrorModel |
PUT /api/field-workers/{id}
Section titled “PUT /api/field-workers/{id}”Update a field worker’s name, email and phone
Operation ID: updateFieldWorker
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
UpdateFieldWorkerRequest |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldWorkerResponse |
default |
Error | application/json ErrorModel |
DELETE /api/field-workers/{id}
Section titled “DELETE /api/field-workers/{id}”Delete a field worker (revokes their sessions first)
Operation ID: deleteFieldWorker
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json StatusChangeResponse |
default |
Error | application/json ErrorModel |
POST /api/field-workers/{id}/activate
Section titled “POST /api/field-workers/{id}/activate”Reactivate a suspended field worker
Operation ID: activateFieldWorker
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json StatusChangeResponse |
default |
Error | application/json ErrorModel |
POST /api/field-workers/{id}/apps
Section titled “POST /api/field-workers/{id}/apps”Grant a field worker access to an application
Operation ID: grantFieldWorkerApp
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
GrantFieldWorkerAppRequest |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json StatusChangeResponse |
default |
Error | application/json ErrorModel |
DELETE /api/field-workers/{id}/apps/{appCode}
Section titled “DELETE /api/field-workers/{id}/apps/{appCode}”Revoke a field worker’s access to an application (and that application’s sessions)
Operation ID: revokeFieldWorkerApp
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
appCode |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json StatusChangeResponse |
default |
Error | application/json ErrorModel |
GET /api/field-workers/{id}/badges
Section titled “GET /api/field-workers/{id}/badges”A field worker’s badges, newest first (never the token)
Operation ID: listFieldWorkerBadges
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldBadgeListResponse |
default |
Error | application/json ErrorModel |
POST /api/field-workers/{id}/badges
Section titled “POST /api/field-workers/{id}/badges”Issue a printed QR badge for a field worker (the token is shown once; earlier active badges are revoked)
Operation ID: issueFieldWorkerBadge
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
IssueFieldBadgeRequest |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created | application/json FieldBadgeIssuedResponse |
default |
Error | application/json ErrorModel |
POST /api/field-workers/{id}/badges/{badgeId}/revoke
Section titled “POST /api/field-workers/{id}/badges/{badgeId}/revoke”Revoke a field worker’s badge
Operation ID: revokeFieldWorkerBadge
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
badgeId |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldBadgeResponse |
default |
Error | application/json ErrorModel |
PUT /api/field-workers/{id}/link
Section titled “PUT /api/field-workers/{id}/link”Link a field worker to a platform user (audit correlation only; grants nothing)
Operation ID: linkFieldWorker
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
LinkFieldWorkerRequest |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldWorkerResponse |
default |
Error | application/json ErrorModel |
DELETE /api/field-workers/{id}/link
Section titled “DELETE /api/field-workers/{id}/link”Remove a field worker’s platform user link
Operation ID: unlinkFieldWorker
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldWorkerResponse |
default |
Error | application/json ErrorModel |
GET /api/field-workers/{id}/photo
Section titled “GET /api/field-workers/{id}/photo”A field worker’s photo (the image)
image/jpeg; size=thumb (128 px, the default) or full (512 px). ETag is “<version>-<size>”, Cache-Control is private, no-cache, so a removal or a lost permission takes effect at once; send If-None-Match for a 304.
Operation ID: getFieldWorkerPhoto
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
size |
query | string | no | thumb (128 px) or full (512 px) One of: thumb, full. Default "thumb". |
If-None-Match |
header | string | no | An ETag from an earlier answer; 304 when the photo is unchanged |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The image | image/jpeg string (binary) |
304 |
Not modified (If-None-Match matched) | none |
PUT /api/field-workers/{id}/photo
Section titled “PUT /api/field-workers/{id}/photo”Set or replace a field worker’s photo
The body is the image itself (JPEG, PNG or WebP; at most FC_FIELD_PHOTO_MAX_BYTES, 10 MiB by default). The platform checks the bytes are an image of that type, applies the orientation, scales it down to a full (512 px) and a thumbnail (128 px) JPEG, and keeps only those: every other byte of the upload, metadata included, is dropped. Answers the worker. 409 PHOTOS_DISABLED_FOR_CLIENT when the client has photos off; 404 PHOTOS_DISABLED when the platform has.
Operation ID: setFieldWorkerPhoto
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/octet-stream |
string (binary) |
image/jpeg |
string (binary) |
image/png |
string (binary) |
image/webp |
string (binary) |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldWorkerResponse |
default |
Error | application/json ErrorModel |
DELETE /api/field-workers/{id}/photo
Section titled “DELETE /api/field-workers/{id}/photo”Remove a field worker’s photo
Answers the worker; removing a photo that is not there is not an error.
Operation ID: removeFieldWorkerPhoto
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldWorkerResponse |
default |
Error | application/json ErrorModel |
POST /api/field-workers/{id}/pin-reset
Section titled “POST /api/field-workers/{id}/pin-reset”Reset a field worker’s PIN (a temporary PIN is returned once when none is supplied)
Operation ID: resetFieldWorkerPin
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
ResetFieldWorkerPinRequest |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json ResetFieldWorkerPinResponse |
default |
Error | application/json ErrorModel |
POST /api/field-workers/{id}/sign-in-codes
Section titled “POST /api/field-workers/{id}/sign-in-codes”Create a single-use code that signs the worker in to an application on any device (impersonation)
Operation ID: createFieldWorkerSignInCode
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
CreateFieldSignInCodeRequest |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created | application/json FieldSignInCodeResponse |
default |
Error | application/json ErrorModel |
GET /api/field-workers/{id}/sign-ins
Section titled “GET /api/field-workers/{id}/sign-ins”A field worker’s sign-in attempts, newest first
Operation ID: listFieldWorkerSignIns
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
page |
query | integer (int64) | no | 0-based page index (default 0) |
pageSize |
query | integer (int64) | no | Page size (default 100, max 1000) |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldWorkerSignInListResponse |
default |
Error | application/json ErrorModel |
POST /api/field-workers/{id}/suspend
Section titled “POST /api/field-workers/{id}/suspend”Suspend a field worker and revoke their sessions
Operation ID: suspendFieldWorker
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json StatusChangeResponse |
default |
Error | application/json ErrorModel |
POST /api/field-workers/{id}/unlock
Section titled “POST /api/field-workers/{id}/unlock”Clear a field worker’s soft and hard locks
Operation ID: unlockFieldWorker
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json StatusChangeResponse |
default |
Error | application/json ErrorModel |
GET /api/field-workers/{id}/unlock-keys
Section titled “GET /api/field-workers/{id}/unlock-keys”A field worker’s unlock keys (biometric sign-in on a personal device), newest first, live and revoked
Operation ID: listFieldWorkerUnlockKeys
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldUnlockKeyListResponse |
default |
Error | application/json ErrorModel |
POST /api/field-workers/{id}/unlock-keys/{unlockKeyId}/revoke
Section titled “POST /api/field-workers/{id}/unlock-keys/{unlockKeyId}/revoke”Revoke a field worker’s unlock key and end the sessions it signed in (on a revoked key, end the sessions it left)
Operation ID: revokeFieldWorkerUnlockKey
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
unlockKeyId |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldUnlockKeyResponse |
default |
Error | application/json ErrorModel |
Schemas
Section titled “Schemas”BulkIssuedFieldBadge
Section titled “BulkIssuedFieldBadge”| Field | Type | Required | Description |
|---|---|---|---|
badge |
FieldBadgeResponse |
yes | |
name |
string | yes | |
token |
string | yes | |
workerCode |
string | yes | |
workerId |
string | yes |
BulkIssueFieldBadgesRequest
Section titled “BulkIssueFieldBadgesRequest”| Field | Type | Required | Description |
|---|---|---|---|
workerIds |
string[] | yes | 1 to 200 workers, all in clients the caller can access; otherwise nothing is issued Min items 1. Max items 200. |
BulkIssueFieldBadgesResponse
Section titled “BulkIssueFieldBadgesResponse”| Field | Type | Required | Description |
|---|---|---|---|
issued |
BulkIssuedFieldBadge[] |
yes |
CreateFieldSignInCodeRequest
Section titled “CreateFieldSignInCodeRequest”| Field | Type | Required | Description |
|---|---|---|---|
appCode |
string | yes | The application the worker is signed in to |
EnsureFieldWorkerRequest
Section titled “EnsureFieldWorkerRequest”| Field | Type | Required | Description |
|---|---|---|---|
appCodes |
string[] | no | Applications the worker may sign in to; granted additively |
canImpersonate |
boolean | no | New worker only; needs the impersonate permission |
clientId |
string | yes | A clt_ id or the client’s identifier |
email |
string | no | |
idempotencyKey |
string | no | Only without workerCode: the caller’s key for this creation, unique within the client (at most 100 characters). Repeating the request with the same key answers the worker the first one made (200, created false) instead of making another. Without a key a creation without a code is not safe to repeat Max length 100. |
isTest |
boolean | no | New worker only: a test identity |
name |
string | yes | |
phone |
string | no | Optional contact number, stored as entered; new worker only |
pin |
string | no | |
workerCode |
string | no | The code the worker types to sign in, unique within the client and stored in upper case (at most 64 characters); an existing code only gains the applications. Omit it and the platform generates one: three letters then the client’s policy’s workerCodeDigits digits (e.g. KTM482), returned as workerCode |
FieldBadgeIssuedResponse
Section titled “FieldBadgeIssuedResponse”| Field | Type | Required | Description |
|---|---|---|---|
badge |
FieldBadgeResponse |
yes | |
token |
string | yes |
FieldBadgeListResponse
Section titled “FieldBadgeListResponse”| Field | Type | Required | Description |
|---|---|---|---|
badges |
FieldBadgeResponse[] |
yes |
FieldBadgeResponse
Section titled “FieldBadgeResponse”| Field | Type | Required | Description |
|---|---|---|---|
createdAt |
string (date-time) | yes | |
createdBy |
string | no | |
id |
string | yes | |
label |
string | no | |
lastUsedAt |
string (date-time) | no | |
revokedAt |
string (date-time) | no | |
status |
string | yes | One of: ACTIVE, REVOKED. |
workerId |
string | yes |
FieldLinkedPrincipalRef
Section titled “FieldLinkedPrincipalRef”| Field | Type | Required | Description |
|---|---|---|---|
email |
string | yes | |
id |
string | yes | |
name |
string | yes |
FieldSignInCodeResponse
Section titled “FieldSignInCodeResponse”| Field | Type | Required | Description |
|---|---|---|---|
appCode |
string | yes | |
code |
string | yes | |
expiresAt |
string (date-time) | yes | |
workerId |
string | yes |
FieldUnlockKeyAttestation
Section titled “FieldUnlockKeyAttestation”| Field | Type | Required | Description |
|---|---|---|---|
attestationSecurityLevel |
string | no | One of: STRONGBOX, TEE, SOFTWARE. |
attestationVersion |
integer (int64) | no | |
authPerUse |
boolean | yes | Secure hardware requires user authentication for every use of the key |
biometricOnly |
boolean | yes | Only a strong biometric unlocks the key (no device PIN or pattern) |
challengeMatches |
boolean | yes | The attestation was made for the session that registered the key |
checkedAt |
string (date-time) | no | When the chain was checked (the registration) |
dates |
string | no | The chain’s certificates were within their validity at registration (checked once) One of: VALID, INVALID. |
datesProblem |
string | no | |
format |
string | yes | One of: ANDROID_KEY, NONE. |
meetsRequirement |
boolean | yes | |
problem |
string | no | Why a chain is MALFORMED |
provisioning |
string | no | How the attestation key reached the phone: FACTORY (expired certificates still trusted) or REMOTE (Remote Key Provisioning, dates always checked) One of: FACTORY, REMOTE. |
revocation |
string | no | What the attestation key status list said at registration One of: CLEAR, REVOKED, SUSPENDED, NOT_CHECKED_OFF, NOT_CHECKED_UNAVAILABLE. |
rootFingerprint |
string | no | Hex SHA-256 of the chain root’s public key |
securityLevel |
string | no | Where Android says the key lives One of: STRONGBOX, TEE, SOFTWARE. |
signP256 |
boolean | yes | A P-256 signing key in secure hardware |
verdict |
string | yes | NONE: no chain was sent (iOS has none). MALFORMED: the chain could not be checked. UNTRUSTED: well formed, root not configured. TRUSTED: the root is one of FC_FIELD_ATTESTATION_ROOTS One of: NONE, MALFORMED, UNTRUSTED, TRUSTED. |
FieldUnlockKeyListResponse
Section titled “FieldUnlockKeyListResponse”| Field | Type | Required | Description |
|---|---|---|---|
unlockKeys |
FieldUnlockKeyResponse[] |
yes |
FieldUnlockKeyResponse
Section titled “FieldUnlockKeyResponse”| Field | Type | Required | Description |
|---|---|---|---|
attestation |
FieldUnlockKeyAttestation |
yes | |
createdAt |
string (date-time) | yes | |
deviceId |
string | yes | |
id |
string | yes | |
lastUsedAt |
string (date-time) | no | |
liveSessions |
integer (int64) | yes | Sessions this key signed in that are still live; revoking the key (also a revoked one) ends them |
pinRequiredBy |
string (date-time) | no | |
pinVerifiedAt |
string (date-time) | yes | The last time the worker proved their PIN on the device |
revokedAt |
string (date-time) | no | |
revokedBy |
string | no | |
revokedReason |
string | no | One of: REPLACED, PIN_CHANGED, PIN_RESET, WORKER_SUSPENDED, WORKER_LOCKED, DEVICE_REVOKED, POLICY_DISABLED, POLICY_CHANGED, ADMIN, DEVICE, ATTESTATION_REVOKED. |
status |
string | yes | One of: ACTIVE, REVOKED. |
workerId |
string | yes |
FieldWorkerAppRef
Section titled “FieldWorkerAppRef”| Field | Type | Required | Description |
|---|---|---|---|
code |
string | yes | |
grantedAt |
string (date-time) | yes | |
id |
string | yes | |
name |
string | yes | |
source |
string | yes |
FieldWorkerBadgeRef
Section titled “FieldWorkerBadgeRef”| Field | Type | Required | Description |
|---|---|---|---|
createdAt |
string (date-time) | yes | |
id |
string | yes | |
lastUsedAt |
string (date-time) | no | |
status |
string | yes | One of: ACTIVE, REVOKED. |
FieldWorkerListResponse
Section titled “FieldWorkerListResponse”| Field | Type | Required | Description |
|---|---|---|---|
page |
integer (int64) | yes | |
size |
integer (int64) | yes | |
total |
integer (int64) | yes | |
workers |
FieldWorkerResponse[] |
yes |
FieldWorkerPhoto
Section titled “FieldWorkerPhoto”| Field | Type | Required | Description |
|---|---|---|---|
updatedAt |
string (date-time) | yes | |
version |
string | yes | Changes whenever the photo does; 16 hex characters |
FieldWorkerResponse
Section titled “FieldWorkerResponse”| Field | Type | Required | Description |
|---|---|---|---|
apps |
FieldWorkerAppRef[] |
yes | |
badge |
FieldWorkerBadgeRef |
yes | |
canImpersonate |
boolean | yes | |
clientId |
string | yes | |
created |
boolean | no | |
createdAt |
string (date-time) | yes | |
email |
string | no | |
failedSinceSuccess |
integer (int64) | yes | |
hardLocked |
boolean | yes | |
hasPin |
boolean | yes | |
id |
string | yes | |
isTest |
boolean | yes | |
lastLoginAt |
string (date-time) | no | |
linkedPrincipal |
FieldLinkedPrincipalRef |
yes | |
locked |
boolean | yes | |
lockedUntil |
string (date-time) | no | |
name |
string | yes | |
phone |
string | no | |
photo |
FieldWorkerPhoto |
yes | |
pinChangeRequired |
boolean | yes | |
status |
string | yes | One of: ACTIVE, DISABLED. |
updatedAt |
string (date-time) | yes | |
workerCode |
string | yes |
FieldWorkerSignInListResponse
Section titled “FieldWorkerSignInListResponse”| Field | Type | Required | Description |
|---|---|---|---|
page |
integer (int64) | yes | |
signIns |
FieldWorkerSignInResponse[] |
yes | |
size |
integer (int64) | yes | |
total |
integer (int64) | yes |
FieldWorkerSignInResponse
Section titled “FieldWorkerSignInResponse”| Field | Type | Required | Description |
|---|---|---|---|
actorId |
string | no | |
appCode |
string | no | |
attemptedAt |
string (date-time) | yes | |
authMethod |
string | yes | |
deviceId |
string | no | |
failureReason |
string | no | |
id |
string | yes | |
ipAddress |
string | no | |
outcome |
string | yes | One of: SUCCESS, FAILURE. |
GrantFieldWorkerAppRequest
Section titled “GrantFieldWorkerAppRequest”| Field | Type | Required | Description |
|---|---|---|---|
appCode |
string | yes |
IssueFieldBadgeRequest
Section titled “IssueFieldBadgeRequest”| Field | Type | Required | Description |
|---|---|---|---|
label |
string | no | A note for the printed badge (at most 255 characters) |
LinkFieldWorkerRequest
Section titled “LinkFieldWorkerRequest”| Field | Type | Required | Description |
|---|---|---|---|
principalId |
string | yes | The platform user (a USER, active, able to access the worker’s client) |
ResetFieldWorkerPinRequest
Section titled “ResetFieldWorkerPinRequest”| Field | Type | Required | Description |
|---|---|---|---|
pin |
string | no |
ResetFieldWorkerPinResponse
Section titled “ResetFieldWorkerPinResponse”| Field | Type | Required | Description |
|---|---|---|---|
pinChangeRequired |
boolean | yes | |
temporaryPin |
string | no |
StatusChangeResponse
Section titled “StatusChangeResponse”| Field | Type | Required | Description |
|---|---|---|---|
message |
string | yes |
UpdateFieldWorkerRequest
Section titled “UpdateFieldWorkerRequest”| Field | Type | Required | Description |
|---|---|---|---|
canImpersonate |
boolean | no | Changing it needs the impersonate permission; clearing it ends the sessions the worker holds as an actor |
email |
string | no | |
isTest |
boolean | no | |
name |
string | yes | |
phone |
string | no | Omit to leave unchanged; an empty string clears it |