Create a rerun campaign

    Create a rerun campaign


    Article summary

    Post
    /v2/{accessKey}/campaign/{campaignKeyOrId}/rerun

    Creating a rerun campaign by duplicating finished campaign

    Header parameters
    Authorization
    stringRequired

    Authorization: Bearer

    Path parameters
    accessKey
    stringRequired

    Customer access key

    campaignKeyOrId
    stringRequired

    Campaign key or Campaign ID

    Body parameters
    example

    Example of Body

    {
      "campaignMeta": {
        "title": "rerun campagin title",
        "scheduledStartAt": "2024-04-01T01:00:00Z"
      },
      "copyPopups": true,
      "copyProducts": true
    }
    Expand All
    object
    campaignMeta
    object Required
    title
    string Required

    Title of the campaign

    scheduledStartAt
    string

    OffsetDateTime(YYYY-MM-DD'T'HH:mm:ss'Z', UTC format only)

    copyPopups
    boolean

    Flag to indicate whether to copy popups

    copyProducts
    boolean

    Flag to indicate whether to copy products

    Responses
    200

    200

    Result
    "{\n    \"campaignMeta\": {\n        \"campaignId\": \"1234\",\n        \"campaignKey\": \"{campaignKey}\",\n        \"accessKey\": \"{accessKey}\",\n        \"shoplivePlayerUrl\": \"https://www.shoplive.show/v1/player.html?ak={accessKey}&ck={campaignKey}\",\n        \"title\": \"New campaign name here\",\n        \"description\": \"Description of the campaign here\",\n        \"campaignStatus\": \"READY\",\n        \"rehearsalPasscode\": \"1234\",\n        \"serveReplay\": true\n        \"logoImageUrl\": null,\n        \"brand\": {\n            \"brandId\": \"1\",\n            \"name\": \"API V2 Brand\",\n            \"identifier\": \"api_v2_brand\",\n            \"description\": \"API V2 Brand description,\n            \"imageUrl\": \"https://image.shoplive.cloud/aa1a2ae6-e557-462c-ae6d-a2ce47d245a1.png\",\n            \"imageWidth\": 2110,\n            \"imageHeight\": 317,\n            \"createdAt\": \"2023-02-22T13:32:50Z\",\n            \"updatedAt\": \"2023-02-22T13:33:46Z\"\n        },\n        \"preCampaignVideoUrl\": null,\n        \"preCampaignImageUrl\": \"https://image.shoplive.cloud/14352cf2-ef40-4ba9-93af-279a104cb3c8.png\",\n        \"postCampaignImageUrl\": \"https://image.shoplive.cloud/6da19c2d-8d53-4cea-801f-7b39913f7c35.png\",\n        \"backgroundImageUrl\": \"https://image.shoplive.cloud/0b1bd566-4087-40ef-b376-fb863a888d72.png\",\n        \"ieUnsupportImageUrl\": \"https://image.shoplive.cloud/5a0fd01c-8889-4d28-8a15-8b7661a422a2.png\",\n        \"scheduledStartAt\": \"2022-11-01T09:00:00Z\",\n        \"scheduledEndAt\": \"2022-11-01T10:00:00Z\",\n        \"campaignStartedAt\": null,\n        \"campaignEndedAt\": null,\n        \"createdAt\": \"2022-11-01T08:15:00Z\",\n        \"updatedAt\": \"2022-11-01T08:29:09Z\"\n    },\n    \"stream\": {\n        \"streamUrl\": \"rtmp://stream.shoplive.cloud:1935/stream\",\n        \"streamKey\": \"{streamKey}\",\n        \"videoAspectRatio\": \"9:16\",\n        \"liveUrl\": \"https://live.shoplive.cloud/live/{streamKey}.m3u8\",\n       \"liveUrls\": {\n        \"480p\": \"https://live.shoplive.cloud/live/{streamKey}_480p/playlist.m3u8\",\n        \"720p\": \"https://live.shoplive.cloud/live/{streamKey}_720p/playlist.m3u8\"\n        },\n                     \"previewLiveUrl\": \"https://live.shoplive.cloud/live/{streamKey}_320p/index.m3u8\",\n        \"replayLiveUrl\": null,\n        \"replayLiveUrls\": null,\n        \"previewReplayLiveUrl\": \"https://api.shoplive.cloud/v1/replay/{accessKey}/{campaignKey}/replay_320p/ORIGINAL/index.m3u8\"\n    },\n    \"campaignProductList\": [],\n    \"seller\": {\n    \t\t\"sellerId\": \"1\",\n        \"name\": \"New seller\",\n        \"profileUrl\": \"https://image.shoplive.cloud/14352cf2-ef40-4ba9-93af-279a104cb3c8.png\",\n        \"storeUrl\": \"https://shoplive.cloud\",\n        \"description\": \"Description of the seller\"\n        \"schemes\": {}\n\t\t}\n}"
    4XX

    4XX

    400
    [
      {
        "code": -836,
        "message": "campaign Meta required"
      },
      {
        "code": -837,
        "message": "Title required"
      }
    ]
    404
    "{\n    \"_s\": 710,\n    \"_e\": \"Campaign does not exist\"\n}"
    Result
    "{\n    \"_s\": -000,\n    \"_e\": \"Error message\"\n}"