Skip to content

codingame_tools.client.common.protocol.user

user

JSON-serializable dataclasses for the User service's updateUserProperties Codingame API method.

CgUserProperties dataclass

CgUserProperties(extra_data=dict(), _contributions_list_last_visit=Alias('contributionsListLastVisit', default=None))

Bases: JSONWizardX

A partial set of a codingamer's account properties, for use with User/updateUserProperties. This is a request payload we construct, not a response we parse--every field is optional (defaulting to None), and (thanks to Meta.skip_defaults) any field left as None is omitted from the JSON payload entirely, matching the endpoint's documented "unchanged fields are omitted" semantics--only fields explicitly set are updated; all others are left alone server-side.

Only one property is known and modeled so far. This schema is expected to grow incrementally as more properties are discovered; follow the existing field's pattern (private field + public datetime-typed property for epoch-millis values, or a plain Optional field otherwise).

contributions_list_last_visit property writable

contributions_list_last_visit

See the field docstring for _contributions_list_last_visit. Always UTC.