diff --git a/services/api-server/src/simcore_service_api_server/models/schemas/jobs.py b/services/api-server/src/simcore_service_api_server/models/schemas/jobs.py index 917e4b4e64d..fef4a19772e 100644 --- a/services/api-server/src/simcore_service_api_server/models/schemas/jobs.py +++ b/services/api-server/src/simcore_service_api_server/models/schemas/jobs.py @@ -281,8 +281,8 @@ class Config(BaseConfig): class JobPricingSpecification(BaseModel): - pricing_plan: PositiveInt - pricing_unit: PositiveInt + pricing_plan: PositiveInt = Field(..., alias="x-pricing-plan") + pricing_unit: PositiveInt = Field(..., alias="x-pricing-unit") class Config: extra = Extra.ignore diff --git a/services/api-server/src/simcore_service_api_server/services/webserver.py b/services/api-server/src/simcore_service_api_server/services/webserver.py index c1cd02bae23..52085d527c8 100644 --- a/services/api-server/src/simcore_service_api_server/services/webserver.py +++ b/services/api-server/src/simcore_service_api_server/services/webserver.py @@ -401,7 +401,7 @@ async def put_project_node_pricing_plan_and_unit( ) -> None: with _handle_webserver_api_errors(): response = await self.client.put( - f"/projects/{project_id}/nodes/{node_id}/pricing-plans/{pricing_plan}/pricing-units/{pricing_unit}", + f"/projects/{project_id}/nodes/{node_id}/pricing-plan/{pricing_plan}/pricing-unit/{pricing_unit}", cookies=self.session_cookies, ) response.raise_for_status()