---
title: "Upload Updated Site Lists"
method: POST
path: "/site_lists/{site_list_id}/upload"
tags: ["Site Lists"]
---

# Upload Updated Site Lists

`POST /site_lists/{site_list_id}/upload`

## Request

- Base URL: `https://api.mediamath.com/api/v3.0`
- URL: `https://api.mediamath.com/api/v3.0/site_lists/{site_list_id}/upload`
- Auth: OAuth 2
  - Authorization code: `https://auth.mediamath.com/authorize`
  - Token URL: `https://auth.mediamath.com/oauth/token` scopes: `offline_access`, `manage:services`
- TypeScript: <https://skmtc.dev/mediamath/apis/campaigns-api/docs/site_lists/:site_list_id/upload/post.ts> (a function with typed inputs; its response is checked against the schema)

Upload updated site lists

## Path parameters

- `site_list_id` integer, required

## Request body `multipart/form-data`

- object
  - `file` string, binary: The file to be uploaded (e.g., comma_sep.txt).
  - `organization_id` string: The ID of the organization. Its a string because form upload
  - `name` string: The name of the site list being uploaded.
  - `restriction` 'INCLUDE' | 'EXCLUDE'
  - `status` 'true' | 'false' | '0' | '1'
  - `version` integer

## Response `200`

Site list response

- object
  - `data` SiteListFull
    - `id` integer
    - `version` integer
    - `status` boolean
    - `organization_id` integer
    - `name` string
    - `restriction` 'INCLUDE' | 'EXCLUDE'
    - `filename` string, nullable
    - `content_updated_on` string, date-time
    - `sites_count` integer, nullable
    - `sites_count_domain` integer, nullable
    - `sites_count_app` integer, nullable
    - `sites_count_primary_seller_id` integer, nullable
    - `created_on` string, date-time
    - `updated_on` string, date-time
  - `meta` SingleMetadata
    - `status` string, required

## Other responses

- `400`: Error response
- `401`: Error response
- `403`: Error response
- `404`: Error response

---

[API](https://skmtc.dev/mediamath/apis/campaigns-api.md) - [All operations](https://skmtc.dev/mediamath/apis/campaigns-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mediamath/apis/campaigns-api/revisions/408743891def?raw)
