Skip to content

Take an item out of the ranking (ineligible, conflict, withdrawn, other); no new judge calls

PUT
/v1/runs/{run_id}/items/{item_id}/exclusion
curl --request PUT \
--url https://api.supposing.app/v1/runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/exclusion \
--header 'Content-Type: application/json' \
--data '{ "reason": "ineligible", "detail": "example" }'
run_id
required
Run Id
string format: uuid
item_id
required
Item Id
string format: uuid
Media typeapplication/json
ExclusionIn
object
reason
required
Reason
string
Allowed values: ineligible conflict withdrawn other
detail
Detail

Required for other.

Any of:
string
<= 500 characters

Successful Response

Media typeapplication/json
ExcludedItem

An item a person took out of the ranking. Reversible; its comparisons are kept but not counted.

object
item_id
required
Item Id
string format: uuid
title
required
Title
Any of:
string
source_id
required
Source Id
Any of:
string
reason
required
Reason
string
Allowed values: ineligible conflict withdrawn other
detail
required
Detail
Any of:
string
by_name
required
By Name
Any of:
string
created_at
required
Created At
Any of:
string format: date-time
note
required
Note
Any of:
string

Example

{
"reason": "ineligible"
}

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"
}
]
}