---
title: "Create scm server if it does not exist in the Jenkins."
method: POST
path: "/kapis/devops.kubesphere.io/v1alpha2/scms/{scm}/servers"
tags: ["DevOps Scm"]
---

# Create scm server if it does not exist in the Jenkins.

`POST /kapis/devops.kubesphere.io/v1alpha2/scms/{scm}/servers`

## Path parameters

- `scm` string, required

## Request body

- DevopsCreateScmServerReq
  - `apiUrl` string — url of scm server
  - `name` string — name of scm server

## Response `200`

ok

- DevopsSCMServer
  - `_class` string — It’s a fully qualified name and is an identifier of the producer of this resource's capability.
  - `_links` Links
    - `actions` Actions
      - `_class` string
      - `href` string
    - `branches` Branches
      - `_class` string
      - `href` string
    - `queue` Queue
      - `_class` string
      - `href` string
    - `runs` Runs
      - `_class` string
      - `href` string
    - `scm` Scm
      - `_class` string
      - `href` string
    - `self` Self
      - `_class` string
      - `href` string
    - `trends` Trends
      - `_class` string
      - `href` string
  - `apiUrl` string — url of scm server
  - `id` string — server id of scm server
  - `name` string — name of scm server

---

[API](https://skmtc.net/kubesphere/apis/kubesphere-devops.md) · [All operations](https://skmtc.net/kubesphere/apis/kubesphere-devops/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kubesphere/kubesphere-devops/revisions/f2642b25b303/schema)
