Versions Compared

Key

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

...

Use this API method to obtain the attributes (metadata) of a specific document. The result is in JSON format and contains the list of attributes along with their values.

Request URL

The request URL takes the following form:
GET <ROOT>/rest/stonikbyte-documents-api/1.0/document/{documentID}

Parameters

Parameter

Description

{documentID}

The Id (key) of the document

A successful response

An HTTP 200 status response indicates a successful request. Here is an example of data returned in JSON format:

...

Data

Description

Example

id

The ID the document

4

type

The type of the document.
Possible values are: Folder, File and URL

"File"

jiraProjectId

The ID of the Jira project the document belongs to

10000

parentId

The ID of the folder or Jira project where the document is located

1

parentType

The type of the parent.
Possible values are: Folder and JiraProject

"Folder"

title

The Title of the document

"Market Requirements Document"

originalFileName

The name of the attached file. Is applicable only for documents of type File.

"mrd.docx"

originalFileExtension

The extension of the attached file. Is applicable only for documents of type File.

"docx"

fileSize

The size of the attached file in Bytes. Is applicable only for documents of type File.

1541093

target

The internal indentifier of the attached file for documents of type File. Or, the target URL for documents of type URL.

5803722147480494253

description

The Description of the document.

"This document describes the market requirements."

dateCreated

The Date when the document was created in number of milliseconds since January 1st, 1970, UTC.

"1483010434245"

createdBy

The key of the Jira user who created the document.

"admin"

currentRevision

The Current Revision field of the document as entered during last update or during creation.

"1.0"

currentRevisionDescription

The Revision Notes field of the document as entered during last update or during creation.

"First draft"

currentRevisionAuthors

The Revision Author(s) field of the document as entered during last update or during creation.

"John Smith"

currentRevisionDate

The Revision Date field of the document.

"2016-12-25"

dateUpdated

The Date when the most recent update was done in number of milliseconds since January 1st, 1970, UTC.

"1483010815614"

updatedBy

The key of the Jira user who performed the most recent update on the document.

"admin"

Error Response

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

...