> ## Documentation Index
> Fetch the complete documentation index at: https://developers.criteo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# [Campaigns] Update Category-Level Bids

export const EndpointBadge = ({method = "GET", children}) => {
  const METHOD_STYLES = {
    GET: {
      bg: "mint-bg-[#2AB673]"
    },
    POST: {
      bg: "mint-bg-[#3064E3]"
    },
    PUT: {
      bg: "mint-bg-[#C28C30]"
    },
    PATCH: {
      bg: "mint-bg-[#DA622B]"
    },
    DELETE: {
      bg: "mint-bg-[#CB3A32]"
    },
    API: {
      bg: "mint-bg-black"
    }
  };
  const key = method.toUpperCase();
  const styles = METHOD_STYLES[key] ?? METHOD_STYLES.API;
  return <div className="relative mt-7">
      <span className={`absolute -top-2 -left-2 z-10 ${styles.bg} text-white px-2.5 py-0.5 rounded-full text-xs font-bold tracking-wide`}>
        {key}
      </span>
      {children}
    </div>;
};

## **Update Category-Level Bids for a Campaign**

<EndpointBadge method="put">
  ```http theme={null}
  https://api.criteo.com/legacy/marketing/v1/campaigns/bids
  ```
</EndpointBadge>

<Warning>
  **When Changing The Overall Campaign Bid**

  When a campaign bid is updated, any category bids with the same value as the original campaign-level bid will also be updated to the new value.

  If you do not wish for the new campaign bid to be cascaded to these categories, all categories with the original campaign-level bid value should be included in the request in order to preserve their state.
</Warning>

<CodeGroup>
  ```bash cURL theme={null}
  curl --request PUT \
    --url https://api.criteo.com/legacy/marketing/v1/campaigns/bids \
    --header 'Accept: application/json' \
    --header 'Content-Type: text/json' \
    --data '[{"categories":[{"categoryHashcode":9876543210,"bidValue":2.5},{"categoryHashcode":1234567890,"bidValue":3}],"campaignId":1234,"bidValue":1}]'
  ```
</CodeGroup>

***

**What’s Next**

Explore the Catalog API

* [Catalog](/marketing-solutions/v2020.07/docs/category-level-bidding)
