---
title: "Create"
method: POST
path: "/v1/mac_addresses"
tags: ["MAC Addresses"]
---

# Create

`POST /v1/mac_addresses`

Creates a new MAC address with the specified data.

## Request body

- MacAddressCreateSpec — MAC address creation request parameters
  - `mac_address` MacAddressCreate, required — MAC address creation request parameters
    - `organization_id` integer, required — Organization ID
    - `address` string — MAC address with colons *aa:bb:cc:dd:ee:ff*
    - `filter_value` string — Obfuscated MAC address value, defaults to MAC address without colons
    - `policy_id` integer — MAC address custom policy ID, *NOTE*: will be ignored and unset if *scheduled_policy_id* is set
    - `scheduled_policy_id` integer — MAC address custom scheduled policy ID
    - `block_page_id` integer — MAC address custom block page ID

## Response `201`

Created MAC address basic information

- object
  - `data` MacAddressSpec — MAC address specification
    - `id` string — Resource Id (integer or uuid)
    - `type` string — Resource type name
    - `uuid` string — Resource UUID (if applicable)
    - `attributes` MacAddress — MAC address resource
      - `address` string — MAC address (may be null)
      - `filter_value` string — Value used to filter queries
      - `created_at` string, date — Creation date
      - `updated_at` string, date — Last update
    - `relationships` object — MAC address associated objects
      - `organization` object
        - `data` IdType — JSON API resource ID and type attributes
          - `id` string — Resource Id (integer or uuid)
          - `type` string — Resource type name
          - `uuid` string — Resource UUID (if applicable)
      - `policy` object
        - `data` IdType — JSON API resource ID and type attributes
          - `id` string — Resource Id (integer or uuid)
          - `type` string — Resource type name
          - `uuid` string — Resource UUID (if applicable)
      - `scheduled_policy` object
        - `data` IdType — JSON API resource ID and type attributes
          - `id` string — Resource Id (integer or uuid)
          - `type` string — Resource type name
          - `uuid` string — Resource UUID (if applicable)
      - `block_page` object
        - `data` IdType — JSON API resource ID and type attributes
          - `id` string — Resource Id (integer or uuid)
          - `type` string — Resource type name
          - `uuid` string — Resource UUID (if applicable)

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `422` — Can not create the MAC address with the specified data

---

[API](https://skmtc.net/dnsfilter/apis/dnsfilter-api.md) · [All operations](https://skmtc.net/dnsfilter/apis/dnsfilter-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dnsfilter/dnsfilter-api/revisions/29e5e6ee3316/schema)
