Campaigns

/campaigns/{campaign_id}

Changed on

Edits a campaign. Omitted fields are left unchanged.

Requires the posts:write scope.

patch/projects/{project_id}/campaigns/{campaign_id}

Request

  • Base URL: https://api.productbyte.com/v1
  • URL: https://api.productbyte.com/v1/projects/{project_id}/campaigns/{campaign_id}
  • Auth: HTTP bearer

Path parameters

project_idstring required

The project the campaign belongs to.

campaign_idstring required

The campaign to edit.

Request body

namestring

Replacement name.

start_datestring date

Replacement start day, as YYYY-MM-DD.

Response

The campaign.

idstring required

Pass this as campaign_id when creating a post.

namestring required

The campaign’s name.

start_datestring date-time

When the campaign starts, when a start day is set. Normalized to midnight UTC on that day — it is a date the product shows, not a scheduling instruction.

post_countinteger required

How many posts belong to it.

created_atstring date-time required

When the campaign was created.

updated_atstring date-time required

When it last changed.

Changes

    • warning

      removed the request property

    • warning

      removed the optional property from the response with the status