# Create a media coverage record for an assignment

**POST /api/v1/assignments/media**

Creates a new media coverage record for a policy and adds published content. The media coverage record is used to track content published by contractors and generate Certificates of Insurance (COIs) for media coverage.

## Servers
- Production server: https://api.1099policy.com (Production server)

## Parameters

### Body: application/json (object)

- **policy_id** (string)  
  The ID of the policy to associate with the media coverage record.

- **publication_date** (integer)  
  The date and time when the content was published, in seconds since the Unix epoch.

- **published_content_json** (object)  
  Details about the published content. Can contain any valid JSON structure.

## Responses
### 201  
Returns the created media coverage record if successful.

#### Body: application/json (object)
- **coverage_end_date** (integer(int64))  
  The date and time when the coverage period ends, measured in seconds since the Unix epoch.

- **created** (integer(int64))  
  Time at which the media coverage record was created.

- **first_publication_date** (integer(int64))  
  The date and time when the first content was published, measured in seconds since the Unix epoch.

- **id** (string)  
  Unique identifier for the media coverage record.

- **is_active** (boolean)  
  Whether the media coverage period is currently active.

- **published_content_json** (array[object])  
  Array of published content items. Each item contains publication_date and platform-specific content data.

- **quote_id** (string)  
  The ID of the quote associated with this media coverage.

### 400  
Returns an error if required fields are missing or invalid.

### 404  
Returns an error if the specified policy is not found.

### 500  
Returns an error if there was an internal server error.
