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 Michael Vasseur committed Oct 20, 2024
1 parent a609bfd commit e5f00b1
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 @@ -402,11 +402,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 e5f00b1

Please sign in to comment.