Get a free key
Remove a specials target

Remove a specials target

Revokes the agency's registration. The target itself is removed only when no other agency registered it and it is still a shadow (discovery) target; a published target keeps running (kept_serving). The agency keeps read access to history already collected.

DELETEhttps://api.motorsdynamic.com/api/v2/targets/{domainId}

Plan and price

PlanAccessPrice
FreeNonot included
GrowthNonot included
ScaleNonot included
EnterpriseYescontract

A call is billed when it answers 2xx. See pricing.

Parameters

NameInTypeRequiredDescription
domainIdpathintegeryesSite id (id from GET /dealers).
kindsqueryspecialsno
agency_idqueryintegerno

Example request

curl -X DELETE "https://api.motorsdynamic.com/api/v2/targets/201?kinds=specials" \
  -H "x-api-key: $MD_API_KEY"

Example response

{
  "data": {
    "domain_id": 201,
    "agency_id": 2,
    "kinds": [
      {
        "kind": "specials",
        "status": "target_removed"
      }
    ]
  }
}

Response fields

FieldTypeDescription
dataobject
data.domain_idinteger
data.agency_idinteger
data.kinds[]array of object
data.kinds[].kindstring
data.kinds[].statusnot_registered or kept_for_other_agencies or target_removed or kept_serving

Errors

StatusCodeWhen
400invalid_parameterA parameter is missing or malformed. The message names it.
401invalid_api_keyThe key is missing, revoked or mistyped.
402plan_requiredThe endpoint is on a higher plan. The body names the plan and links to the upgrade.
403not_entitledThe key may not read this dealer or source.
429rate_limited or quota_exceededSlow down (see Retry-After), or the Free monthly calls are used up.
504query_timeoutThe query passed its 4 second budget. Narrow the filters. Not billed.

Every error has the same body. Full list: errors.