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.

application/json

Body

  • policy_id string Required

    The ID of the policy to associate with the media coverage record.

  • publication_date integer Required

    The date and time when the content was published, in seconds since the Unix epoch.

  • published_content_json object Required

    Details about the published content. Can contain any valid JSON structure.

Responses

  • 201 application/json

    Returns the created media coverage record if successful.

  • 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.

POST /api/v1/assignments/media
curl \
 --request POST 'https://api.1099policy.com/api/v1/assignments/media' \
 --header "Content-Type: application/json" \
 --data '{"policy_id":"pl_123abc","publication_date":1711612800,"published_content_json":{"url":"https://instagram.com/pl/1234567890","platform":"instagram","additional_field":"any value"}}'
Request example
{
  "policy_id": "pl_123abc",
  "publication_date": 1711612800,
  "published_content_json": {
    "url": "https://instagram.com/pl/1234567890",
    "platform": "instagram",
    "additional_field": "any value"
  }
}