Update a campaign

    Update a campaign


    Article summary

    Put
    /v2/{accessKey}/campaign/{campaignKey}

    Modifiable fields of CampaignMeta object

    Field NameTypeDescription
    titlestringTitle of the campaign
    descriptionstringDescription of the campaign
    rehearsalPasscodestringPasscode to enter the live streaming in rehearsal mode
    serveReplaybooleanWhether replays are public
    scheduledStartAtstringScheduled start DateTime of the campaign (format: YYYY-MM-DD'T'HH:mm:ss'Z')
    scheduledEndAtstringScheduled end DateTime of the campaign (format: YYYY-MM-DD'T'HH:mm:ss'Z')
    Header parameters
    Authorization
    stringRequired

    Authorization: Bearer

    Path parameters
    accessKey
    stringRequired

    Customer access key

    campaignKey
    stringRequired

    Campaign key

    Body parameters
    Expand All
    object
    campaignMeta
    object Required
    title
    string

    Title of the campaign

    description
    string

    Description of the campaign (memo in the campaign setting)

    tags
    string

    Tag information set for the campaign (Max 10 tags can be set)

    rehearsalPasscode
    string

    Passcode to access when campaign is in rehearsal state

    serveReplay
    boolean

    Whether replays are public

    brand
    object
    brandId
    integer (int64) Required

    Brand ID

    scheduledStartAt
    string

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

    scheduledEndAt
    string

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

    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 title\",\n        \"description\": \"New description\",\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-12-01T09:00:00Z\",\n        \"scheduledEndAt\": \"2022-12-01T10:00:00Z\",\n        \"campaignStartedAt\": null,\n        \"campaignEndedAt\": null,\n        \"createdAt\": \"2022-11-01T08:15:00Z\",\n        \"updatedAt\": \"2022-11-30T11:40: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\": null\n}"
    4XX

    4XX

    Result
    "{\n    \"_s\": -000,\n    \"_e\": \"Error message\"\n}"