POST
/
public
/
v1
/
media-service
/
slots
Create Slot
curl --request POST \
  --url https://api.topsort.com/public/v1/media-service/slots \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dimensions": {
    "desktop": {
      "height": 1,
      "width": 1
    },
    "mobile": {
      "height": 1,
      "width": 1
    }
  },
  "position": "category",
  "slotId": "sidebar-2"
}'
{
  "dimensions": {
    "desktop": {
      "height": 20,
      "width": 20
    },
    "mobile": {
      "height": 10,
      "width": 10
    }
  },
  "externalId": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "isActive": true,
  "marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "page": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "imageUrl": "<string>",
    "marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "Homepage",
    "url": "https://app.example.com/main"
  },
  "position": "landing"
}

Authorizations

Authorization
string
header
required

A valid API key generated in Topsort's UI.

Body

application/json

Category or search slot create request.

Response

200
application/json

Successful Response

The ad config slot model