> ## 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] Manage Active Categories

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>;
};

## **Enable and Disable Categories**

Categories can be enabled and disabled at the catalog level, changing their eligibility for category-level bidding.

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

<Warning>
  **Bidding for Disabled Categories**

  Bidding will still occur for disabled categories - the base bid of the campaign will be used.
</Warning>

<CodeGroup>
  ```bash cURL theme={null}
  curl --request PUT \
    --url https://api.criteo.com/legacy/marketing/v1/categories \
    --header 'Accept: application/json' \
    --header 'Content-Type: text/json' \
    --data '[{"categories":[{"categoryHashCode":9876543210,"enabled":false}],"catalogId":98765}]'
  ```
</CodeGroup>
