---
agentTools:
  projectIndex: https://panxpan.readme.io/llms.txt
---

# Update tier information for a campaign

Updates details of a specific tier for a campaign, including rewards, price, and tier name.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Panxpan Campaign Tiers Management API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://www.panxpan.com/_functions"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ],
  "paths": {
    "/updateTier": {
      "patch": {
        "summary": "Update tier information for a campaign",
        "description": "Updates details of a specific tier for a campaign, including rewards, price, and tier name.",
        "security": [
          {
            "apiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "campaign_id",
                  "tier_id"
                ],
                "properties": {
                  "campaign_id": {
                    "type": "string",
                    "description": "The ID of the campaign to which the tier belongs.",
                    "example": "12345"
                  },
                  "tier_id": {
                    "type": "string",
                    "description": "The ID of the tier to update.",
                    "example": "67890"
                  },
                  "tier_name": {
                    "type": "string",
                    "example": "Gold Supporter - Updated"
                  },
                  "price": {
                    "type": "number",
                    "example": 120
                  },
                  "nft_image": {
                    "oneOf": [
                      {
                        "type": "string",
                        "description": "URL of the updated NFT image.",
                        "example": "https://example.com/nft-gold-updated.jpg"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string",
                            "example": "An updated golden badge symbolizing support."
                          },
                          "artistic_style": {
                            "type": "string",
                            "example": "Realistic"
                          }
                        }
                      }
                    ]
                  },
                  "rewards": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "example": [
                      "Exclusive newsletter",
                      "Monthly update call"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tier updated successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Tier updated successfully."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request due to invalid parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_code": {
                      "type": "string",
                      "example": "400"
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid tier data provided."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Campaign or tier not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_code": {
                      "type": "string",
                      "example": "404"
                    },
                    "message": {
                      "type": "string",
                      "example": "Tier not found for the specified campaign."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 45,
      "2": 60,
      "3": 140,
      "4": 191,
      "5": 130,
      "6": 244,
      "7": 0,
      "8": 48,
      "9": 70,
      "10": 127,
      "11": 133
    }
  }
}
```