maptekblastlogic.api.crews package

Contains endpoint functions for accessing the API

Submodules

maptekblastlogic.api.crews.create_crew module

maptekblastlogic.api.crews.create_crew.sync_detailed(site_code, *, client, body)[source]

Create a new crew.

Requires permissions: Edit Site Resources

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[ErrorModel | int]

Return type:

Response[ErrorModel | int]

maptekblastlogic.api.crews.create_crew.sync(site_code, *, client, body)[source]

Create a new crew.

Requires permissions: Edit Site Resources

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

ErrorModel | int

Return type:

ErrorModel | int | None

async maptekblastlogic.api.crews.create_crew.asyncio_detailed(site_code, *, client, body)[source]

Create a new crew.

Requires permissions: Edit Site Resources

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[ErrorModel | int]

Return type:

Response[ErrorModel | int]

async maptekblastlogic.api.crews.create_crew.asyncio(site_code, *, client, body)[source]

Create a new crew.

Requires permissions: Edit Site Resources

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

ErrorModel | int

Return type:

ErrorModel | int | None

maptekblastlogic.api.crews.get_crews module

maptekblastlogic.api.crews.get_crews.sync_detailed(site_code, *, client)[source]

Get a list of crews.

Requires permissions: Any

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[ErrorModel | list[CrewModel]]

Return type:

Response[ErrorModel | list[CrewModel]]

maptekblastlogic.api.crews.get_crews.sync(site_code, *, client)[source]

Get a list of crews.

Requires permissions: Any

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

ErrorModel | list[CrewModel]

Return type:

ErrorModel | list[CrewModel] | None

async maptekblastlogic.api.crews.get_crews.asyncio_detailed(site_code, *, client)[source]

Get a list of crews.

Requires permissions: Any

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[ErrorModel | list[CrewModel]]

Return type:

Response[ErrorModel | list[CrewModel]]

async maptekblastlogic.api.crews.get_crews.asyncio(site_code, *, client)[source]

Get a list of crews.

Requires permissions: Any

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

ErrorModel | list[CrewModel]

Return type:

ErrorModel | list[CrewModel] | None

maptekblastlogic.api.crews.update_crew module

maptekblastlogic.api.crews.update_crew.sync_detailed(site_code, crew_id, *, client, body, if_match)[source]

Update an existing crew.

Requires permissions: Edit Site Resources

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[Any | ErrorModel]

Return type:

Response[Any | ErrorModel]

maptekblastlogic.api.crews.update_crew.sync(site_code, crew_id, *, client, body, if_match)[source]

Update an existing crew.

Requires permissions: Edit Site Resources

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Any | ErrorModel

Return type:

Any | ErrorModel | None

async maptekblastlogic.api.crews.update_crew.asyncio_detailed(site_code, crew_id, *, client, body, if_match)[source]

Update an existing crew.

Requires permissions: Edit Site Resources

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[Any | ErrorModel]

Return type:

Response[Any | ErrorModel]

async maptekblastlogic.api.crews.update_crew.asyncio(site_code, crew_id, *, client, body, if_match)[source]

Update an existing crew.

Requires permissions: Edit Site Resources

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Any | ErrorModel

Return type:

Any | ErrorModel | None