Skip to content

Delete targetings

DELETE
/targetings
curl --request DELETE \
--url https://portal.staging.arago-tech.com/targetings \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "ids": [ "63e2d42a27ad5f2b345ca124" ] }'

Deletes multiple targetings

Request to delete targetings by targeting unique identifiers

Media typeapplication/json
DeleteTargetingsRequest

Request to delete targetings by targeting unique identifiers

object
ids
required
Targeting IDs

The unique identifiers of the targetings to delete

Array<string>
>= 1 items <= 3000 items
Example
[
"63e2d42a27ad5f2b345ca124"
]

A successful response.

Media typeapplication/json
object
Examplegenerated
{}

Bad request

Media typeapplication/json
object
Example
{
"error": {
"code": "BAD_REQUEST",
"details": [
{
"code": "MAX_ITEMS",
"field": "line_items",
"message": "value must contain no more than 3000 item(s)",
"params": {
"max": "3000"
}
}
],
"message": "Bad request"
}
}

Unauthorized

Media typeapplication/json
object
Example
{
"error": {
"code": "UNAUTHORIZED",
"message": "Unauthorized"
}
}

Internal server error

Media typeapplication/json
object
Example
{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error"
}
}

An unexpected error response.

Media typeapplication/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
any
Examplegenerated
{
"code": 1,
"message": "example",
"details": [
{
"@type": "example"
}
]
}