OverviewProductsPlatformsAPI ReferenceResources
Accounts & Ops

Delete a value rule set

DELETEhttps://zernio.com/api/v1/ads/value-rule-sets/{valueRuleSetId}

Deletes a Meta value rule set (detach it from ad sets first, since they are not changed here).

Deletes the rule set (Meta's POST /{value-rule-set-id}/delete_rule_set, a custom action edge rather than an HTTP DELETE on its side). Ad sets pointing at it are not modified here; detach them first with valueRulesApplied: false on PUT /v1/ads/ad-sets/{adSetId}.

PlatformsMeta

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

valueRuleSetIdstringRequired

Platform value rule set id.

Query parameters

accountIdstringRequired

Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.

Responses

Success· the request worked

Errors· the request failed

DELETE/v1/ads/value-rule-sets/{valueRuleSetId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adaccounts.deleteValueRuleSet({  path: {    valueRuleSetId: 'valueruleset_abc123',  },  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "valueRuleSetId": "string",  "message": "string"}
OpenAPI specification
Was this page helpful?