---
title: "Update a Service in the given Namesapce"
method: PUT
path: "/mf/v1/service/{id}"
tags: ["modelDeploy"]
---

# Update a Service in the given Namesapce

`PUT /mf/v1/service/{id}`

## Path parameters

- `id` number, required

## Request body

- ServicePut
  - `cpu` number, double — Serivce CPU resource.
  - `gpu` string — Serivce GPU resource.
  - `memory` number, double — Service memory resource.
  - `modelversion_id` number — the modelversion id of this service.
  - `modelversion` string — the modelversion id of this service.
  - `source` string — the modelversion id of this service.
  - `service_id` number — the service id of this service.
  - `namespace` string — the namespace of this service.
  - `service_name` string — the namespace of this service.
  - `remark` string — service remark

## Response `200`

OK

## Other responses

- `401` — Unauthorized
- `404` — Service put failed

---

[API](https://skmtc.dev/webankfintech/apis/mf-server.md) · [All operations](https://skmtc.dev/webankfintech/apis/mf-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webankfintech/mf-server/revisions/5ad7fc23d2c6/schema)
