Skip to content

Commit ad768f5

Browse files
committed
Upload of problem metadata uses another endpoint
See: https://domjudge-org.slack.com/archives/CHHURFUM7/p1726156440653609?thread_ts=1726145487.583349&cid=CHHURFUM7 (cherry picked from commit 72b3b49)
1 parent a609bfd commit ad768f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/manual/import.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,11 @@ and click `Import`.
402402

403403
To import the file using the API run the following commands::
404404

405-
http --check-status -b -f POST "<API_URL>/contests/<CID>/problems" [email protected]
405+
http --check-status -b -f POST "<API_URL>/contests/<CID>/problems/add-data" [email protected]
406406

407407
To import the file using the CLI run the following command::
408408

409-
<WEBAPP_DIR>/bin/console api:call -m POST -f data=problems.yaml contests/<CID>/problems
409+
<WEBAPP_DIR>/bin/console api:call -m POST -f data=problems.yaml contests/<CID>/problems/add-data
410410

411411
Replace ``<CID>`` with the contest ID that was returned when importing the
412412
contest metadata.

0 commit comments

Comments
 (0)