everyaction.services.Worksites¶
- class everyaction.services.Worksites(ea: EAClient)¶
Represents the Worksites service.
Methods
create_work_area(**kwargs)get(worksite_id)list(*[, limit])See GET /worksites.
- create_work_area(**kwargs: EAValue) WorkArea¶
See POST /worksites/{worksiteId}/workAreas.
- Parameters
kwargs – The applicable query arguments and JSON data for the request. A
WorkAreais appropriate to unpack here.- Returns
The created
WorkArea.- Keyword Arguments
name
workAreaId (work_area_id, id)
- get(worksite_id: int) Worksite¶
See GET /worksites/{worksiteId}.
- Parameters
worksite_id – The worksiteId path parameter.
- Returns
The resulting
Worksiteobject.
- list(*, limit: Optional[int] = None, **kwargs: EAValue) List[Worksite]¶
See GET /worksites.
- Parameters
limit – Maximum number of records to get for this request.
kwargs – Applicable query arguments and JSON data for the request.
- Returns
List of the resulting
Worksiteobjects.- Keyword Arguments
employerId (employer_id, employer)
expand
isMyOrganization (is_my_organization, my_organization, my_org)