...
Use this API method to upload a file in Jira for being used later to create a document of File type. The result is in JSON format and contains the ID of temporary file uploaded in Jira.NOTE:
Info |
---|
This API method will not create a document of type File in Documents. It is just the first step for the process of creating such a document. See |
...
...
section. |
Request URL
The request URL takes the following form:
POST <ROOT>/rest/stonikbyte-documents-api/1.0/temporary-attachment?filename={fileName}&projectId=(projectID}&atl_token={atlToken}
...
An HTTP 201(Created) status response indicates a successful request. The result in JSON format will contain the ID of the temporary attached file that you can use to create a new document of type File. See the Creating a new document or folder section.
Code Block | ||
---|---|---|
| ||
{ "name": "myfile.txt", "id": "7214177218780006431" } |
...