Update Single Campaign

Update a Campaign

PATCH {{URL}}/api/v1/campaign/:campaign_id

This endpoint allows you to update a particular campaign.

Path Parameters

Name
Type
Description

campaign_id

string

The Id of the campaign to update.

Headers

Name
Type
Description

Authentication

string

Authentication token of the user.

Request Body

Name
Type
Description

name

string

Update name of the campaign

start_date

string

Update start date

end_date

string

Update end date

status

string

Update status of the campaign

{
    "status": "success",
    "message": "Campaign successfully updated",
    "results": 1,
    "data": {
        "_id": "60b0cc4ef1f6101078a62db6",
        "status": "created",
        "name": "Movies",
        "startDate": "2021-07-03T23:00:00.000Z",
        "endDate": "2021-12-06T23:00:00.000Z",
        "__v": 0
    }
}

Last updated

Was this helpful?