Skip to content

Commit cd90383

Browse files
committed
Added description of Document Updating. Ref: #5. a19107906383486, a19107906383480, a18673866971731
1 parent 2068118 commit cd90383

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

docs/source/procuring.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ Procuring Entity can change the Tender properties with following request. Data t
6767

6868
Changing existing documents
6969
~~~~~~~~~~~~~~~~~~~~~~~~~~~
70-
Procuring Entity can upload new versions of the tender documentation.
70+
71+
Procuring Entity can upload new versions of the tender documentation. You
72+
can see supported request types in Documents Uploading section.
7173

7274
.. sourcecode:: http
7375

@@ -77,6 +79,11 @@ Procuring Entity can upload new versions of the tender documentation.
7779

7880
HTTP/1.1 200 OK
7981

82+
Example request:
83+
84+
.. include:: tutorial/update-award-criteria.http
85+
:code:
86+
8087
Uploading additional documents
8188
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8289
The same as :ref:`procuring-uploading-docs`.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
$ http --form PUT http://api-sandbox.openprocurement.org/api/0/tenders/f6882fa63d5141bcabec54a4766eec61/documents/d276284e3e4a414a8ad2a0cd6e898925 file@./AwardCriteria-v2.pdf
2+
PUT /api/0/tenders/f6882fa63d5141bcabec54a4766eec61/documents/d276284e3e4a414a8ad2a0cd6e898925 HTTP/1.1
3+
Content-Type: multipart/form-data; boundary=41251fdd469c4d2f8ac8aa1d13d522ae
4+
5+
6+
7+
+-----------------------------------------+
8+
| NOTE: binary data not shown in terminal |
9+
+-----------------------------------------+
10+
11+
HTTP/1.1 200 OK
12+
Content-Type: application/json; charset=UTF-8
13+
14+
{
15+
"data": {
16+
"datePublished": "2014-11-07T18:10:27.098545",
17+
"format": "text/plain",
18+
"id": "d276284e3e4a414a8ad2a0cd6e898925",
19+
"modified": "2014-11-07T18:10:30.474252",
20+
"title": "AwardCriteria-v2.pdf",
21+
"url": "http://api-sandbox.openprocurement.org/api/0/tenders/f6882fa63d5141bcabec54a4766eec61/documents/d276284e3e4a414a8ad2a0cd6e898925?download=9e391070d3d2476a97e6aecc09e73eae"
22+
}
23+
}

0 commit comments

Comments
 (0)