---
updatedAt: 2026-05-27T12:12:20.000Z
agentTools:
  projectIndex: https://api-docs.omnisend.com/v3/llms.txt
---

# Replace category

Replace category. Pass all category info. Not passed fields will be deleted. For example if `createdAt` won't be passed, it will be overwritten with current date.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "3.0.0",
    "title": "Omnisend API",
    "description": ""
  },
  "paths": {
    "/categories/{categoryID}": {
      "parameters": [
        {
          "name": "categoryID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "put": {
        "operationId": "PUT_categories",
        "summary": "Replace category",
        "tags": [
          "Products"
        ],
        "description": "Replace category. Pass all category info. Not passed fields will be deleted. For example if `createdAt` won't be passed, it will be overwritten with current date.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/category-partial"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "categoryID": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/trait-errorStatusCodes-400"
          },
          "401": {
            "$ref": "#/components/responses/trait-errorStatusCodes-401"
          },
          "403": {
            "$ref": "#/components/responses/trait-errorStatusCodes-403"
          },
          "404": {
            "$ref": "#/components/responses/trait-errorStatusCodes-404"
          },
          "408": {
            "$ref": "#/components/responses/trait-errorStatusCodes-408"
          },
          "422": {
            "$ref": "#/components/responses/trait-errorStatusCodes-422"
          },
          "429": {
            "$ref": "#/components/responses/trait-errorStatusCodes-429"
          }
        },
        "security": [
          {
            "X-API-KEY": []
          }
        ]
      }
    }
  },
  "x-readme": {
    "proxy-enabled": false
  },
  "servers": [
    {
      "url": "https://api.omnisend.com/v3"
    }
  ],
  "components": {
    "responses": {
      "trait-errorStatusCodes-400": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "default": "Bad Request - invalid parameters, fields or filters"
                }
              }
            }
          }
        }
      },
      "trait-errorStatusCodes-401": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "default": "Unauthorized - authorization error (invalid basic auth data or API key)"
                }
              }
            }
          }
        }
      },
      "trait-errorStatusCodes-403": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "default": "Forbidden – The server understood the request, but is refusing it (blocked due to many errors in particular time) or the access is not allowed."
                }
              }
            }
          }
        }
      },
      "trait-errorStatusCodes-404": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "default": " Not found – There is no resource behind the URI."
                }
              }
            }
          }
        }
      },
      "trait-errorStatusCodes-408": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "default": "Request timeout"
                }
              }
            }
          }
        }
      },
      "trait-errorStatusCodes-422": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "default": "Unprocessable Entity – used if the server cannot process the enitity, e.g. mandatory fields are missing in the payload.",
                  "description": ""
                }
              }
            }
          }
        }
      },
      "trait-errorStatusCodes-429": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "default": " to many requests (rate limit) - current "
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "X-API-KEY": {
        "name": "X-API-KEY",
        "type": "apiKey",
        "in": "header"
      }
    },
    "schemas": {
      "category-partial": {
        "title": "Category partial",
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          }
        },
        "required": [
          "title"
        ]
      }
    }
  }
}
```