Documents Uploading¶
All of the document uploading API endpoints follow the same set of rules.
Upload document with registration¶
Add document in API:
POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/documents?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0 Authorization: Basic YnJva2VyOg== Content-Length: 407 Content-Type: application/json Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions DATA: { "data": { "hash": "md5:00000000000000000000000000000000", "description": "document description", "title": "Notice.pdf", "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6ac51cb148a042db8c3ff05ca03e17eb?KeyID=172d32c8&Signature=5e4W7kjbPCSTnRdcmDox0Ro9u3Nd2e0kGJnnSvWq1WSFZc95Vk2Kzg2HnCYMsLSscPP8JMYvbjxaB6s9JPHOAw%3D%3D", "format": "application/pdf", "documentType": "technicalSpecifications" } } Response: 201 Created Content-Type: application/json Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/documents/c33444fdcca243b382630e9924d54509 X-Content-Type-Options: nosniff { "data": { "hash": "md5:00000000000000000000000000000000", "description": "document description", "format": "application/pdf", "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6ac51cb148a042db8c3ff05ca03e17eb?KeyID=172d32c8&Signature=ODek9PjlhbCkmeL80dDgAiaDHzTqYEmQSYBqYnKfyIFMJoQsrLkzcPHkb3Cnpj%2FYCHink%252B2Hl6ag%252BbdlGkv1DA%253D%253D", "title": "Notice.pdf", "documentOf": "auction", "datePublished": "2019-01-28T12:32:17.643280+02:00", "documentType": "technicalSpecifications", "dateModified": "2019-01-28T12:32:17.643302+02:00", "id": "c33444fdcca243b382630e9924d54509" } }
Upload document without registration¶
Add document in API:
POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/documents?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0 Authorization: Basic YnJva2VyOg== Content-Length: 407 Content-Type: application/json Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions DATA: { "data": { "hash": "md5:00000000000000000000000000000000", "description": "document description", "title": "Notice.pdf", "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6ac51cb148a042db8c3ff05ca03e17eb?KeyID=172d32c8&Signature=5e4W7kjbPCSTnRdcmDox0Ro9u3Nd2e0kGJnnSvWq1WSFZc95Vk2Kzg2HnCYMsLSscPP8JMYvbjxaB6s9JPHOAw%3D%3D", "format": "application/pdf", "documentType": "technicalSpecifications" } } Response: 201 Created Content-Type: application/json Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/documents/c33444fdcca243b382630e9924d54509 X-Content-Type-Options: nosniff { "data": { "hash": "md5:00000000000000000000000000000000", "description": "document description", "format": "application/pdf", "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6ac51cb148a042db8c3ff05ca03e17eb?KeyID=172d32c8&Signature=ODek9PjlhbCkmeL80dDgAiaDHzTqYEmQSYBqYnKfyIFMJoQsrLkzcPHkb3Cnpj%2FYCHink%252B2Hl6ag%252BbdlGkv1DA%253D%253D", "title": "Notice.pdf", "documentOf": "auction", "datePublished": "2019-01-28T12:32:17.643280+02:00", "documentType": "technicalSpecifications", "dateModified": "2019-01-28T12:32:17.643302+02:00", "id": "c33444fdcca243b382630e9924d54509" } }