Articles
This resource lets you access articles in the YouTrack knowledge base.
Resource | /api/articles |
Returned entity | Article. For the description of the entity attributes, see Supported Fields section. |
Supported methods |
|
Supported sub-resources |
|
Article attributes
Represents an article.
Related Resources
Below you can find the list of resources that let you work with this entity.
Extends BaseArticle
Attributes
This table describes attributes of the Article
entity.
To receive an attribute in the response from the server, specify it explicitly in the
fields
request parameter.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
---|---|---|
id | String | The ID of the article. |
attachments | Array of ArticleAttachments | The list of files attached to the article. |
childArticles | Array of Articles | The list of sub-articles of the current one. |
comments | Array of ArticleComments | The list of comments to the article. |
content | String | The content of the article. |
created | Long | The timestamp in milliseconds indicating the moment when the article was created. Stored as a unix timestamp at UTC. |
externalArticle | ExternalArticle | The reference to the article or a similar object in the originating third-party system. |
hasChildren | Boolean | When |
hasStar | Boolean | |
idReadable | String | The article ID. |
ordinal | Long | The position of the article in the tree. |
parentArticle | Article | The parent article of the current one. |
pinnedComments | Array of ArticleComments | The list of comments that are pinned in the article. |
project | Project | The project where the article belongs. |
reporter | User | The user who created the article. |
summary | String | The article title. |
tags | Array of Tags | The list of tags that are added to the article. |
updated | Long | The timestamp in milliseconds indicating the last update of the article. Stored as a unix timestamp at UTC. |
updatedBy | User | The user who last updated the article. |
visibility | Visibility | Visibility settings of the article. These settings describe who is allowed to see the article. |
Read a List of Articles
Get all articles.
Request syntax
Request parameters
Parameter | Type | Description |
---|---|---|
fields | String | A list of Article attributes that should be returned in the response. If no field is specified, only the |
$skip | Int | Optional. Lets you set a number of returned entities to skip before returning the first one. |
$top | Int | Optional. Lets you specify the maximum number of entries that are returned in the response. If you don't set the $top value, the server limits the maximum number of returned entries. The server returns a maximum of 42 entries for most resources that return collections. For more information, see Pagination. |
Sample
Sample request
Sample response body
Add a New Article
Create new article.
Required fields: id
- the database ID of the article that will be linked as a sub-article to the current one.
Required permissions
Requires permissions: Create Article
Request syntax
Request parameters
Parameter | Type | Description |
---|---|---|
fields | String | A list of Article attributes that should be returned in the response. If no field is specified, only the |
draftId | String | ID of a draft to publish as a new article. If no |
muteUpdateNotifications | Boolean | Set this parameter to |