SystemUserRestriction

toloka.client.user_restriction.SystemUserRestriction | Source code

SystemUserRestriction(
self,
*,
user_id: Optional[str] = None,
private_comment: Optional[str] = None,
will_expire: Optional[datetime] = None,
id: Optional[str] = None,
created: Optional[datetime] = None
)

A system-wide restriction.

Parameters description

ParametersTypeDescription
user_idOptional[str]

The ID of the Toloker.

private_commentOptional[str]

A comment visible to the requester only.

will_expireOptional[datetime]

The UTC date and time when the access will be restored by Toloka. If the parameter isn't set, then the restriction is active until you remove it calling the delete_user_restriction method.

idOptional[str]

The ID of the restriction.

createdOptional[datetime]

The UTC date and time when the restriction was applied. Read-only field.

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming