Skip to main content
PATCH
/
api
/
entities
/
many
Bulk update classification flags on multiple entities
curl --request PATCH \
  --url https://api.mentionlab.io/api/entities/many \
  --header 'Content-Type: application/json' \
  --header 'x-project-id: <x-project-id>' \
  --data '
{
  "ids": [
    "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "550e8400-e29b-41d4-a716-446655440000"
  ],
  "isOwned": true,
  "isCompetitor": false,
  "isBlacklisted": false
}
'

Headers

x-project-id
string
required

Project ID to specify the project context

Body

application/json
ids
array[]
required

Entity IDs to update (must belong to the current project)

Example:
[
"f47ac10b-58cc-4372-a567-0e02b2c3d479",
"550e8400-e29b-41d4-a716-446655440000"
]
isOwned
boolean

Mark entities as owned by the project

Example:

true

isCompetitor
boolean

Mark entities as competitors

Example:

false

isBlacklisted
boolean

Mark entities as blacklisted (excludes from analysis but preserves history)

Example:

false

Response