Skip to main content
POST
/
v1
/
products
Create a new product
curl --request POST \
  --url http://localhost:4000/v1/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "data": {
    "product": {
      "id": 123,
      "name": "<string>",
      "description": "<string>",
      "price": 123,
      "contractValue": 123,
      "accountId": 123,
      "createdAt": "<string>",
      "updatedAt": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

API key required in Authorization header. Format: iclosed-<token>

Body

application/json
name
string
required
Minimum string length: 1
description
string

Response

Successfully created product

data
object
required