---
title: "POST /api/add-product"
method: POST
path: "/api/add-product"
tags: ["Product API"]
---

# POST /api/add-product

`POST /api/add-product`

add product

## Request body

- ObjectProduct
  - `createdTime` string
  - `currency` string
  - `description` string
  - `detail` string
  - `displayName` string
  - `image` string
  - `name` string
  - `owner` string
  - `price` number, double
  - `providerObjs` ObjectProvider[]
    - `appId` string
    - `bucket` string
    - `category` string
    - `cert` string
    - `clientId` string
    - `clientId2` string
    - `clientSecret` string
    - `clientSecret2` string
    - `content` string
    - `createdTime` string
    - `customAuthUrl` string
    - `customLogo` string
    - `customTokenUrl` string
    - `customUserInfoUrl` string
    - `disableSsl` boolean
    - `displayName` string
    - `domain` string
    - `enableSignAuthnRequest` boolean
    - `endpoint` string
    - `host` string
    - `idP` string
    - `intranetEndpoint` string
    - `issuerUrl` string
    - `metadata` string
    - `method` string
    - `name` string
    - `owner` string
    - `pathPrefix` string
    - `port` integer
    - `providerUrl` string
    - `receiver` string
    - `regionId` string
    - `scopes` string
    - `signName` string
    - `subType` string
    - `templateCode` string
    - `title` string
    - `type` string
    - `userMapping` unknown
  - `providers` string[]
  - `quantity` integer
  - `returnUrl` string
  - `sold` integer
  - `state` string
  - `tag` string

## Response `200`

The Response object

---

[API](https://skmtc.net/casdoor/apis/casdoor-restful-api.md) · [All operations](https://skmtc.net/casdoor/apis/casdoor-restful-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casdoor/casdoor-restful-api/versions/be9a5584b821/schema)
