Skip to content

Restore Campaign

POST
/campaigns/{campaign_id}/restore

Undo the soft delete from DELETE /campaigns/{campaign_id}: the campaign appears again.

The same two gates as the delete, re-declared (neither runs on a direct call): the per-record ownership scope AND campaigns:delete, so whoever may archive a campaign may restore it. A campaign that is not archived answers 200 with “Campaign is not archived” and changes nothing. Fires the campaign.restored webhook, as in the app.

Spends nothing.

Authorizations

Parameters

Path Parameters

campaign_id
required

Campaign id or slug.

string

Campaign id or slug.

Header Parameters

X-Target-Org-Id
Any of:
string

Responses

200

Successful Response

object
data
required

One Studio object, open-shaped. See the module docstring.

object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string