Skip to content

Items whose texts are identical or nearly so (a warning; nothing is merged)

GET
/v1/datasets/{dataset_id}/duplicates
curl --request GET \
--url https://api.supposing.app/v1/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/duplicates
dataset_id
required
Dataset Id
string format: uuid

Successful Response

Media typeapplication/json
DuplicateList
object
data
required
Data
Array<object>
DuplicateGroup

Items whose texts are the same (identical) or nearly so (near). A warning: nothing is merged or dropped.

object
kind
required
Kind
string
Allowed values: identical near
similarity
required
Similarity

Share of five-word phrases in common, 0 to 1.

number
items
required
Items
Array<object>
DuplicateRef
object
item_id
required
Item Id
string format: uuid
title
required
Title
string
source_id
required
Source Id
Any of:
string
next_cursor
required
Next Cursor
Any of:
string

Example

{
"data": [
{
"kind": "identical"
}
]
}

Client error. Branch on code; show message and hint.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}

Server error.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}