---
schema_version: "1"
id: 74757140f8169be029ce7919879aa504877d18775e907f8fb4df73ae4af44427
title: Assign Promotions to Campaigns with Enhanced OCAPI Data API Endpoint
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/rn_enhanced_api_endpoint_b2c_21_3_w8578766_lb.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.rn_enhanced_api_endpoint_b2c_21_3_w8578766_lb.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 1f136c927f382e6e3fddeb62d3778d501ff7cec77ec97ded4d3e00b0b2a921a2
description: "`/sites/{site_id}/campaigns/{campaign_id}/promotions/{promotion_id}` now allows the `PATCH` method and accepts a body for the `PUT` and `PATCH` methods. This body is identical to the response of the `/sites/{site_id}/promotion_campaign_assignment_search` API, but it now supports a new `required_qualifier` property. With this body, you can set qualifiers and other properties, such as rank, on a promotion assignment when you create it. You can also update these values."
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Assign Promotions to Campaigns with Enhanced OCAPI Data API Endpoint

\`/sites/{site\_id}/campaigns/{campaign\_id}/promotions/{promotion\_id}\` now allows the \`PATCH\` method and accepts a body for the \`PUT\` and \`PATCH\` methods. This body is identical to the response of the \`/sites/{site\_id}/promotion\_campaign\_assignment\_search\` API, but it now supports a new \`required\_qualifier\` property. With this body, you can set qualifiers and other properties, such as rank, on a promotion assignment when you create it. You can also update these values.