Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type: object
description: A stable error code and message describing why a label submission was rejected.
description: A stable error code and message describing why labels in a submission could not be applied.
additionalProperties: false
required:
- code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ properties:
description: The list of labels to submit. A label may appear only once.
minItems: 1
items:
$ref: LabelsEventLabel.yaml
$ref: LabelSubmissionLabel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ properties:
examples:
- 1735401600000.AbCdEf
status:
$ref: LabelsStatus.yaml
$ref: LabelSubmissionEventOutcome.yaml
errors:
type: array
description: The reasons the labels were rejected. Omitted unless `status` is `rejected`.
items:
$ref: LabelsEventError.yaml
$ref: LabelSubmissionError.yaml
8 changes: 4 additions & 4 deletions schemas/paths/labels.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
post:
tags:
- Labels
operationId: submitFraudLabels
operationId: submitEventFraudLabels
summary: Submit Fraud Labels for an event
description: |
Submits labels for a single event, no more than 30 days old. The submission is processed synchronously — a `200`
Expand All @@ -12,7 +12,7 @@ post:
content:
application/json:
schema:
$ref: ../components/schemas/LabelsRequest.yaml
$ref: ../components/schemas/LabelSubmissionEventRequest.yaml
examples:
valid:
summary: Example request
Expand All @@ -23,7 +23,7 @@ post:
content:
application/json:
schema:
$ref: ../components/schemas/LabelsResponse.yaml
$ref: ../components/schemas/LabelSubmissionEventResult.yaml
examples:
200-applied:
summary: Example response
Expand Down Expand Up @@ -73,7 +73,7 @@ post:
content:
application/json:
schema:
$ref: ../components/schemas/LabelsResponse.yaml
$ref: ../components/schemas/LabelSubmissionEventResult.yaml
examples:
422-rejected:
summary: Response when the labels were rejected.
Expand Down