Skip to content

test-list: add entry endpoint not working #1209

Description

@hellais

There seems to be an issue with the endpoint for adding new entries to the URL priorities.

When I attempt to add a new priority rule I get the following error:

Image

The payload of the request is to https://api.ooni.org/api/_/url-priorities/update is the following:

{"old_entry":{},"new_entry":{"category_code":"*","cc":"KZ","domain":"www.azattyq.org","url":"*","priority":9999}}

While the response is the following:

{
    "detail": [
        {
            "type": "missing",
            "loc": [
                "body",
                "old_entry",
                "priority"
            ],
            "msg": "Field required",
            "input": {},
            "url": "https://errors.pydantic.dev/2.12/v/missing"
        }
    ]
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctlypriority/mediumNormal priority issue

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions