Skip to content

PUT on a clarification via api/doc doesn't work #3168

@vmcj

Description

@vmcj

We use formdata in the api/doc to submit the PUT request but this is out of spec.

curl -X 'PUT' \
  'http://localhost/domjudge/api/v4/contests/demo/clarifications/1?strict=false' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'text=same text as string' \
  -F 'time=2025-10-26T13:38:47.878Z' \
  -F 'id=1'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions