katana_public_api_client.api.services.update_service¶
katana_public_api_client.api.services.update_service
¶
Classes¶
Functions¶
asyncio(id, *, client, body)
async
¶
Update Service
Update an existing Service. (See: Update Service)
Parameters:
-
id(int) – -
body(UpdateServiceRequest) –Request payload for updating an existing service's properties and specifications Example: {'name': 'Updated Assembly Service', 'uom': 'hours', 'category_name': 'Professional Services', 'is_sellable': True, 'is_archived': False, 'sales_price': 85.0, 'default_cost': 55.0, 'sku': 'ASSM-001-UPD', 'additional_info': 'Updated professional product assembly service', 'custom_field_collection_id': 1}.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
DetailedErrorResponse | ErrorResponse | Service | None–Union[DetailedErrorResponse, ErrorResponse, Service]
Source code in katana_public_api_client/api/services/update_service.py
asyncio_detailed(id, *, client, body)
async
¶
Update Service
Update an existing Service. (See: Update Service)
Parameters:
-
id(int) – -
body(UpdateServiceRequest) –Request payload for updating an existing service's properties and specifications Example: {'name': 'Updated Assembly Service', 'uom': 'hours', 'category_name': 'Professional Services', 'is_sellable': True, 'is_archived': False, 'sales_price': 85.0, 'default_cost': 55.0, 'sku': 'ASSM-001-UPD', 'additional_info': 'Updated professional product assembly service', 'custom_field_collection_id': 1}.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[DetailedErrorResponse | ErrorResponse | Service]–Response[Union[DetailedErrorResponse, ErrorResponse, Service]]
Source code in katana_public_api_client/api/services/update_service.py
sync(id, *, client, body)
¶
Update Service
Update an existing Service. (See: Update Service)
Parameters:
-
id(int) – -
body(UpdateServiceRequest) –Request payload for updating an existing service's properties and specifications Example: {'name': 'Updated Assembly Service', 'uom': 'hours', 'category_name': 'Professional Services', 'is_sellable': True, 'is_archived': False, 'sales_price': 85.0, 'default_cost': 55.0, 'sku': 'ASSM-001-UPD', 'additional_info': 'Updated professional product assembly service', 'custom_field_collection_id': 1}.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
DetailedErrorResponse | ErrorResponse | Service | None–Union[DetailedErrorResponse, ErrorResponse, Service]
Source code in katana_public_api_client/api/services/update_service.py
sync_detailed(id, *, client, body)
¶
Update Service
Update an existing Service. (See: Update Service)
Parameters:
-
id(int) – -
body(UpdateServiceRequest) –Request payload for updating an existing service's properties and specifications Example: {'name': 'Updated Assembly Service', 'uom': 'hours', 'category_name': 'Professional Services', 'is_sellable': True, 'is_archived': False, 'sales_price': 85.0, 'default_cost': 55.0, 'sku': 'ASSM-001-UPD', 'additional_info': 'Updated professional product assembly service', 'custom_field_collection_id': 1}.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[DetailedErrorResponse | ErrorResponse | Service]–Response[Union[DetailedErrorResponse, ErrorResponse, Service]]