---
agentTools:
  projectIndex: https://developers.fluidcoins.com/llms.txt
---

# Edit a previously saved product

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "merchant.Product": {
        "properties": {
          "amount": {
            "type": "integer"
          },
          "coin_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "images": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "is_active": {
            "type": "boolean"
          },
          "metadata": {
            "$ref": "#/components/schemas/merchant.ProductMetadata"
          },
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "integer"
          },
          "slug": {
            "type": "string"
          },
          "stock": {
            "$ref": "#/components/schemas/merchant.ProductStockMetadata"
          },
          "store": {
            "$ref": "#/components/schemas/merchant.Store"
          },
          "store_id": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "merchant.ProductMetadata": {
        "properties": {
          "has_variant": {
            "type": "boolean"
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "merchant.ProductStockMetadata": {
        "properties": {
          "low_stock_alert": {
            "type": "integer"
          },
          "quantity": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "merchant.Store": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_active": {
            "type": "boolean"
          },
          "merchant_id": {
            "type": "string"
          },
          "metadata": {
            "$ref": "#/components/schemas/merchant.StoreMetadata"
          },
          "name": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "tagline": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "merchant.StoreMetadata": {
        "properties": {
          "currency": {
            "type": "string"
          },
          "short_link": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "server.APIError": {
        "properties": {
          "message": {
            "description": "Generic message that tells you the status of the operation",
            "type": "string"
          },
          "status": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "server.productEditRequest": {
        "properties": {
          "details": {
            "properties": {
              "amount": {
                "type": "integer"
              },
              "description": {
                "type": "string"
              },
              "low_stock_alert": {
                "type": "integer"
              },
              "quantity": {
                "type": "integer"
              },
              "title": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "images": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "server.productResponse": {
        "properties": {
          "message": {
            "description": "Generic message that tells you the status of the operation",
            "type": "string"
          },
          "product": {
            "$ref": "#/components/schemas/merchant.Product"
          },
          "status": {
            "type": "boolean"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "contact": {
      "email": "developers@fluidcoins.com",
      "name": "Fluidcoins Engineering",
      "url": "https://developers.fluidcoins.com"
    },
    "description": "A suite of APIs to create, manage and accept cryptocurrency payments in Africa",
    "title": "Fluidcoins Pay api documentation",
    "version": "0.3.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/store/products/{slug}": {
      "patch": {
        "parameters": [
          {
            "description": "product slug",
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/server.productEditRequest"
              }
            }
          },
          "description": "product edit data",
          "required": true,
          "x-originalParamName": "message"
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/server.productResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/server.APIError"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/server.APIError"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/server.APIError"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/server.APIError"
                }
              }
            },
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Edit a previously saved product",
        "tags": [
          "store"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.fluidcoins.com/v1"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 97,
      "1": 10,
      "2": 185,
      "3": 203,
      "4": 107,
      "5": 146,
      "6": 158,
      "7": 0,
      "8": 253,
      "9": 16,
      "10": 179,
      "11": 200
    }
  }
}
```