---
updatedAt: 2026-08-13T23:51:37.000Z
---

# Create a creative association

Create a creative association between a Creative and a Line Item. The Line Item cannot be activated until it has one or more active creative associations.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Core API Resources",
    "version": "2.0.0",
    "description": "Buzz API v2"
  },
  "paths": {
    "/line-items/{line_item_id}/creatives": {
      "post": {
        "operationId": "line_items_creatives_create",
        "description": "Create a creative association between a Creative and a Line Item. The Line Item cannot be activated until it has one or more active creative associations.",
        "summary": "Create a creative association",
        "parameters": [
          {
            "in": "path",
            "name": "line_item_id",
            "schema": {
              "type": "integer"
            },
            "required": true
          }
        ],
        "tags": [
          "Line Items"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreativeLineItem"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/CreativeLineItem"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreativeLineItem"
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "nestSessionAuth": []
          },
          {
            "nestBasicAuth": []
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreativeLineItem"
                }
              }
            },
            "description": "Creative association created successfully."
          },
          "400": {
            "description": "Invalid request data."
          },
          "401": {
            "description": "Authentication required."
          },
          "403": {
            "description": "Permission denied."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Creative": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "start_date": {
            "type": "string",
            "nullable": true,
            "description": "The start date of the associated creative.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2025-09-29 00:00:00"
          },
          "end_date": {
            "type": "string",
            "nullable": true,
            "description": "The end date of the associated creative.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2025-09-29 00:00:00"
          },
          "name": {
            "type": "string",
            "description": "The name of the associated creative."
          },
          "type": {
            "type": "string",
            "description": "The type of the associated creative."
          },
          "thumbnail_url": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "description": "The thumbnail URL of the associated creative."
          },
          "template_id": {
            "type": "integer",
            "description": "The unique identifier of the template of the associated creative."
          },
          "height": {
            "type": "integer",
            "nullable": true,
            "description": "The height of the associated creative."
          },
          "width": {
            "type": "integer",
            "nullable": true,
            "description": "The width of the associated creative."
          },
          "active": {
            "type": "boolean",
            "default": true
          }
        },
        "required": [
          "id",
          "name",
          "template_id",
          "type"
        ]
      },
      "CreativeLineItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "account_id": {
            "type": "integer",
            "readOnly": true
          },
          "active": {
            "type": "boolean",
            "default": true
          },
          "weight": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1,
            "nullable": true,
            "description": "The weighting of the creative in the line item."
          },
          "start_date": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date/time when this association is available"
          },
          "end_date": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date/time when this association become unavailable"
          },
          "line_item_id": {
            "type": "integer"
          },
          "creative": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Creative"
              }
            ],
            "readOnly": true
          },
          "creative_id": {
            "type": "integer",
            "writeOnly": true
          }
        },
        "required": [
          "account_id",
          "creative",
          "creative_id",
          "id"
        ]
      }
    },
    "securitySchemes": {
      "nestBasicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "Form-based Basic Authentication"
      },
      "nestSessionAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "Form-based Basic Authentication"
      }
    }
  },
  "x-explorer-enabled": false,
  "x-samples-languages": [
    "curl",
    "node",
    "ruby",
    "javascript",
    "python",
    "php",
    "java"
  ],
  "servers": [
    {
      "url": "https://{buzz_key}.api.beeswax.com/rest/v2",
      "variables": {
        "buzz_key": {
          "default": "stingersbx",
          "description": "Unique customer ID assigned by the Beeswax"
        }
      }
    }
  ],
  "x-readme": {
    "apply-endpoint-order": true,
    "apply-tag-changes": true
  }
}
```