Skip to content

Commit

Permalink
Upload of problem metadata uses another endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj authored and meisterT committed Sep 13, 2024
1 parent aa222cc commit 72b3b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/manual/import.rst
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,11 @@ and click `Import`.

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

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

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

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

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

0 comments on commit 72b3b49

Please sign in to comment.