---
title: "Run a Service CRD Object."
method: POST
path: "/mf/v1/serviceRun"
tags: ["modelDeploy"]
---

# Run a Service CRD Object.

`POST /mf/v1/serviceRun`

Run Service.

## Request body

- ServicePost
  - `service_id` number — Service Id.
  - `service_name` string, required — Service Name.
  - `type` string, required — Service Type, Include Single, ABTest, Graph.
  - `namespace` string, required — Service NameSpace.
  - `creation_timestamp` string — creation timestamp of service.
  - `last_updated_timestamp` string — last update timestamp of this service.
  - `cpu` number, double, required — Serivce CPU resource.
  - `gpu` string, required — Serivce GPU resource.
  - `memory` number, double, required — Service memory resource.
  - `group_id` number — the group id of this service.
  - `log_path` string — The location of log path.
  - `remark` string — The location path of the model material.
  - `service_post_models` ServicePostModel[]
    - `modelversion_id` number — the modelversion id of this service.
    - `model_name` string — serivce model name
    - `source` string — model s3 path
    - `model_type` string — serivce model name
    - `model_version` string — serivce model name
    - `group_name` string — serivce model name
    - `endpoint_type` string — serivce model name
    - `image` string — Custom image
    - `parameters` ModelParameters[]
      - `name` string — params name
      - `type` string — params type, STRING
      - `value` string — params value

## Response `200`

OK

## Other responses

- `401` — Unauthorized
- `404` — Model create 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)
