{% extends "base.html" %} {# Copyright The IETF Trust 2015, All Rights Reserved #} {% load origin %} {% block title %}Draft submission API instructions{% endblock %} {% block content %} {% origin %}
A simplified draft submission interface, intended for automation,
is available at {% url 'ietf.submit.views.api_submit' %}.
The interface accepts only xml uploads which can be processed on the server, and requires the user to have a datatracker account. A successful submit still requires the same email confirmation roundtrip as submissions done through the regular submission tool.
This interface does not provide all the options which the regular submission tool does. Some limitations:
multipart/form-data, supported by curl but not by wgetIt takes 2 parameters:
user which is the user loginxml, which is the submitted file
It returns an appropriate http result code, and a brief explanatory text message.
Here is an example:
$ curl -S -F "user=user.name@example.com" -F "xml=@~/draft-user-example.xml" https://datatracker.ietf.org/api/submit
Upload of draft-user-example OK, confirmation requests sent to:
User Name <user.name@example.com>
{% endblock %}