---
title: "Metadata Rules"
description: "8 endpoints."
canonical_url: "https://twominutebilling.com/help/developers/api-reference/metadata-rules"
---
# Metadata Rules

> 8 endpoints.

## Endpoints

<table>
<thead>
  <tr>
    <th>
      Method
    </th>
    
    <th>
      Endpoint
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/metadata-rules/list-metadata-key-rules">
        <code>
          /v1/businesses/{biz}/metadata_key_rules
        </code>
      </a>
    </td>
    
    <td>
      List metadata key rules
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        POST
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/metadata-rules/add-a-rule-for-a-customer-or-subscription-metada">
        <code>
          /v1/businesses/{biz}/metadata_key_rules
        </code>
      </a>
    </td>
    
    <td>
      Add a rule for a customer or subscription metadata path
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/metadata-rules/get-a-metadata-key-rule">
        <code>
          /v1/businesses/{biz}/metadata_key_rules/{id}
        </code>
      </a>
    </td>
    
    <td>
      Get a metadata key rule
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PATCH
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/metadata-rules/edit-a-metadata-key-rule">
        <code>
          /v1/businesses/{biz}/metadata_key_rules/{id}
        </code>
      </a>
    </td>
    
    <td>
      Edit a metadata key rule
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        DELETE
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/metadata-rules/archive-a-metadata-key-rule">
        <code>
          /v1/businesses/{biz}/metadata_key_rules/{id}
        </code>
      </a>
    </td>
    
    <td>
      Archive a metadata key rule
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/metadata-rules/list-the-metadata-paths-a-business-already-uses">
        <code>
          /v1/businesses/{biz}/metadata_observed_keys
        </code>
      </a>
    </td>
    
    <td>
      List the metadata paths a business already uses, for suggestions
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/metadata-rules/get-the-validation-switch-and-strict-mode-for-cu">
        <code>
          /v1/businesses/{biz}/metadata_rule_settings
        </code>
      </a>
    </td>
    
    <td>
      Get the validation switch and strict mode for customer and subscription metadata
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PATCH
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/metadata-rules/turn-metadata-validation-on-or-off">
        <code>
          /v1/businesses/{biz}/metadata_rule_settings
        </code>
      </a>
    </td>
    
    <td>
      Turn metadata validation on or off, and set strict mode
    </td>
  </tr>
</tbody>
</table>


## Sitemap

See the full [sitemap](https://twominutebilling.com/sitemap.md) for all pages.
