Skip to content

Field policies

Field policies: 8 operations, tagged field-policies in the OpenAPI document.

Method Path Summary
GET /api/field-policies/{clientId} Get a client’s effective field policy
PUT /api/field-policies/{clientId} Set a client’s field policy
GET /api/field-policies/{clientId}/applications The applications’ overrides of a client’s field policy (an application sees only its own)
GET /api/field-policies/{clientId}/applications/{appCode} An application’s view of a client’s field policy: each overridable member’s effective value, source, lock and override
PATCH /api/field-policies/{clientId}/applications/{appCode} Set or clear members of an application’s override of a client’s field policy
DELETE /api/field-policies/{clientId}/applications/{appCode} Clear an application’s override of a client’s field policy (every member follows the client)
PUT /api/field-policies/{clientId}/locks Set the members of a client’s field policy its applications may not override (platform administrators only)
DELETE /api/field-policies/{clientId}/photos Delete every field-worker photo of a client

Get a client’s effective field policy

Operation ID: getFieldPolicy

Parameters

Name In Type Required Description
clientId path string yes A clt_ id or the client’s identifier

Responses

Status Description Body
200 OK application/json FieldPolicyResponse
default Error application/json ErrorModel

Set a client’s field policy

Operation ID: putFieldPolicy

Parameters

Name In Type Required Description
clientId path string yes A clt_ id or the client’s identifier

Request body (required)

Content type Schema
application/json PutFieldPolicyRequest

Responses

Status Description Body
200 OK application/json FieldPolicyResponse
default Error application/json ErrorModel

GET /api/field-policies/{clientId}/applications

Section titled “GET /api/field-policies/{clientId}/applications”

The applications’ overrides of a client’s field policy (an application sees only its own)

Operation ID: listFieldPolicyOverrides

Parameters

Name In Type Required Description
clientId path string yes A clt_ id or the client’s identifier

Responses

Status Description Body
200 OK application/json FieldPolicyOverrideListResponse
default Error application/json ErrorModel

GET /api/field-policies/{clientId}/applications/{appCode}

Section titled “GET /api/field-policies/{clientId}/applications/{appCode}”

An application’s view of a client’s field policy: each overridable member’s effective value, source, lock and override

Operation ID: getFieldPolicyOverride

Parameters

Name In Type Required Description
clientId path string yes A clt_ id or the client’s identifier
appCode path string yes The application’s code

Responses

Status Description Body
200 OK application/json FieldPolicyApplicationResponse
default Error application/json ErrorModel

PATCH /api/field-policies/{clientId}/applications/{appCode}

Section titled “PATCH /api/field-policies/{clientId}/applications/{appCode}”

Set or clear members of an application’s override of a client’s field policy

Operation ID: patchFieldPolicyOverride

Parameters

Name In Type Required Description
clientId path string yes A clt_ id or the client’s identifier
appCode path string yes The application’s code

Request body (required)

Content type Schema
application/json PatchFieldPolicyOverrideRequest

Responses

Status Description Body
200 OK application/json FieldPolicyApplicationResponse
default Error application/json ErrorModel

DELETE /api/field-policies/{clientId}/applications/{appCode}

Section titled “DELETE /api/field-policies/{clientId}/applications/{appCode}”

Clear an application’s override of a client’s field policy (every member follows the client)

Operation ID: deleteFieldPolicyOverride

Parameters

Name In Type Required Description
clientId path string yes A clt_ id or the client’s identifier
appCode path string yes The application’s code

Responses

Status Description Body
200 OK application/json FieldPolicyApplicationResponse
default Error application/json ErrorModel

Set the members of a client’s field policy its applications may not override (platform administrators only)

Operation ID: putFieldPolicyLocks

Parameters

Name In Type Required Description
clientId path string yes A clt_ id or the client’s identifier

Request body (required)

Content type Schema
application/json PutFieldPolicyLocksRequest

Responses

Status Description Body
200 OK application/json FieldPolicyResponse
default Error application/json ErrorModel

DELETE /api/field-policies/{clientId}/photos

Section titled “DELETE /api/field-policies/{clientId}/photos”

Delete every field-worker photo of a client

Removes every stored photo of the client’s field workers in one transaction, whatever the client’s photos setting says (switching photos off only hides them). Answers how many were removed; a repeat removes none. Needs platform:iam:field-worker:manage for the client; an application-confined account is refused (403 APPLICATION_FORBIDDEN): it removes its own workers’ photos one at a time.

Operation ID: deleteClientFieldWorkerPhotos

Parameters

Name In Type Required Description
clientId path string yes A clt_ id or the client’s identifier

Responses

Status Description Body
200 OK application/json DeleteClientPhotosResponse
default Error application/json ErrorModel
Field Type Required Description
removed integer (int64) yes How many photos were deleted; 0 when the client held none
Field Type Required Description
appCode string yes
applicationId string yes
clientId string yes
effective FieldPolicyResponse yes
members FieldPolicyMembers yes
updatedAt string (date-time) no When the override last changed; absent when the application has none
updatedBy string no
Field Type Required Description
effective boolean yes
locked boolean yes The client does not let its applications override this member (set by platform administrators)
override boolean | null yes The application’s own value; null when it follows the client
overruled boolean yes The application has an override that does not apply: the client locked the member, or the application is not active and enabled for the client
source string yes DEFAULT: the client has no policy of its own; CLIENT: the client’s policy; APPLICATION: this application’s override One of: DEFAULT, CLIENT, APPLICATION.
Field Type Required Description
effective integer (int64) yes
locked boolean yes
override integer (int64) | null yes The application’s own value; null when it follows the client
overruled boolean yes
source string yes One of: DEFAULT, CLIENT, APPLICATION.
Field Type Required Description
badgeOnlyLogin FieldPolicyBoolMember yes
personalIdleSecs FieldPolicyIntMember yes
photosEnabled FieldPolicyBoolMember yes
requireEnrolledDevice FieldPolicyBoolMember yes
sharedIdleSecs FieldPolicyIntMember yes
shiftMaxSecs FieldPolicyIntMember yes
unenrolledIdleSecs FieldPolicyIntMember yes
unlockKeysEnabled FieldPolicyBoolMember yes
Field Type Required Description
applications FieldPolicyOverrideSummary[] yes
Field Type Required Description
appCode string yes
applicationId string yes
overrides FieldPolicyOverrideValues yes
overruled string[] yes Members it overrides that do not apply: locked by the client, or the application is not active and enabled for the client
updatedAt string (date-time) yes
updatedBy string no
Field Type Required Description
badgeOnlyLogin boolean no
personalIdleSecs integer (int64) no 60 to 86400
photosEnabled boolean no
requireEnrolledDevice boolean no
sharedIdleSecs integer (int64) no 60 to 86400
shiftMaxSecs integer (int64) no 3600 to 86400
unenrolledIdleSecs integer (int64) no 60 to 86400
unlockKeysEnabled boolean no
Field Type Required Description
badgeOnlyLogin boolean yes
clientId string yes
hardLockThreshold integer (int64) yes
impersonationMaxSecs integer (int64) yes
isDefault boolean yes
lockedMembers string[] yes One of: unlockKeysEnabled, requireEnrolledDevice, badgeOnlyLogin, sharedIdleSecs, personalIdleSecs, shiftMaxSecs, unenrolledIdleSecs, photosEnabled.
personalIdleSecs integer (int64) yes
photosEnabled boolean yes
pinMinLength integer (int64) yes
pinReauthDays integer (int64) yes
requireAttestation boolean yes
requireEnrolledDevice boolean yes
sharedIdleSecs integer (int64) yes
shiftMaxSecs integer (int64) yes
softLockSecs integer (int64) yes
softLockThreshold integer (int64) yes
unenrolledIdleSecs integer (int64) yes
unlockKeyAttestation string yes One of: NONE, REQUIRED.
unlockKeysEnabled boolean yes
updatedAt string (date-time) no
workerCodeDigits integer (int64) yes
workerMaySetOwnPhoto boolean yes
Field Type Required Description
clear string[] no Members that follow the client again One of: unlockKeysEnabled, requireEnrolledDevice, badgeOnlyLogin, sharedIdleSecs, personalIdleSecs, shiftMaxSecs, unenrolledIdleSecs, photosEnabled.
set FieldPolicyOverrideValues no
Field Type Required Description
lockedMembers string[] yes The members applications may not override; an existing override of one is kept and does not apply One of: unlockKeysEnabled, requireEnrolledDevice, badgeOnlyLogin, sharedIdleSecs, personalIdleSecs, shiftMaxSecs, unenrolledIdleSecs, photosEnabled.
Field Type Required Description
badgeOnlyLogin boolean no Let a badge sign in without a PIN on an enrolled device (default false)
hardLockThreshold integer (int64) no softLockThreshold to 50 (default 10)
impersonationMaxSecs integer (int64) no 300 to 43200 (default 14400)
personalIdleSecs integer (int64) no 60 to 86400 (default 7200)
photosEnabled boolean no Field-worker photos for this client (default true). False hides them: none can be set and none is shown, but the stored photos are kept (DELETE /api/field-policies/{clientId}/photos deletes them)
pinMinLength integer (int64) no 4 to 12 (default 6)
pinReauthDays integer (int64) no 0 to 90 (default 0): the days an unlock key signs a worker in after they last entered their PIN on the device; 0 forces no periodic PIN
requireAttestation boolean yes
requireEnrolledDevice boolean no Refuse sign-in from a key that is not an enrolled device (default false)
sharedIdleSecs integer (int64) no 60 to 86400 (default 900)
shiftMaxSecs integer (int64) no 3600 to 86400 (default 50400)
softLockSecs integer (int64) no 30 to 86400 (default 900)
softLockThreshold integer (int64) no 1 to 20 (default 5)
unenrolledIdleSecs integer (int64) no 60 to 86400 (default 900)
unlockKeyAttestation string no NONE (default): an unlock key’s attestation is recorded, not enforced. REQUIRED: only a key with a trusted Android key attestation (secure hardware, strong biometric for every use) may be registered; needs FC_FIELD_ATTESTATION_ROOTS, and switching to it revokes the client’s keys that do not meet it One of: NONE, REQUIRED.
unlockKeysEnabled boolean no Let a worker register an unlock key on a PERSONAL device and sign in again with a fingerprint or face (default false). Switching it off revokes every unlock key of the client
workerCodeDigits integer (int64) no Digits after the three letters of a worker code the platform generates, 3 to 6 (default 3); applies to codes generated afterwards only
workerMaySetOwnPhoto boolean no Let a signed-in worker set and remove their own photo from the device (default false)