Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use this API method to create a new document or folder. The result is in JSON format and contains the list of attributes of the newly created document.

Request URL

The request URL takes the following form:
POST <ROOT>/rest/stonikbyte-documents-api/1.0/document?projectId={projectID}

Parameters

Parameter

Description

projectId

The id of the Jira project where the document will be created

...

Code Block
languagejson
{
  "title": "Company Web Site",
  "type" : "URL",
  "targetURL" : "https://stonikbyte.com"
}

A successful response

An HTTP 200 status response indicates a successful request. The result in JSON format will contain the list with the attributes of the newly created document. See Obtaining the attributes of a document for a description of these attributes.

Error Response

If the REST call fails, the service returns one of the following HTTP statuses:

...