openapi: 3.0.1
info:
contact:
name: Polarion REST API Support
url: https://support.sw.siemens.com/
description:
About
The Polarion REST API lets you interact with Polarion programmatically. Use this API to integrate Polarion with your applications. This page documents the REST resources, including the HTTP response codes and example requests and responses.
For a detailed description of the REST API and how to use it, see the REST API User Guide (available on Support Center).
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
title: Polarion REST Account Pages API
version: v1
servers:
- url: https://example.com/polarion/rest/v1
security:
- bearerAuth: []
tags:
- name: Pages
paths:
/all/pages:
get:
operationId: getAllPages
parameters:
- name: page[size]
in: query
description: Limit the number of entities returned in a single response. See REST API User Guide for details.
schema:
type: integer
format: int32
- name: page[number]
in: query
description: Specify the page number to be returned. Counting starts from 1. See REST API User Guide for details.
schema:
type: integer
format: int32
- name: fields
in: query
description: Filter returned resource fields. See REST API User Guide for details.
style: deepObject
schema:
$ref: '#/components/schemas/sparseFields'
- name: include
in: query
description: Include related entities. See REST API User Guide for details.
schema:
type: string
- name: query
in: query
description: The query string.
schema:
type: string
- name: sort
in: query
description: The sort string.
schema:
type: string
- name: revision
in: query
description: The revision ID.
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/pagesListGetResponse'
description: OK
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'406':
description: Not Acceptable
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Returns a list of Pages from all Projects and Pages on the Repository level.
tags:
- Pages
/pages:
get:
operationId: getGlobalPages
parameters:
- name: page[size]
in: query
description: Limit the number of entities returned in a single response. See REST API User Guide for details.
schema:
type: integer
format: int32
- name: page[number]
in: query
description: Specify the page number to be returned. Counting starts from 1. See REST API User Guide for details.
schema:
type: integer
format: int32
- name: fields
in: query
description: Filter returned resource fields. See REST API User Guide for details.
style: deepObject
schema:
$ref: '#/components/schemas/sparseFields'
- name: include
in: query
description: Include related entities. See REST API User Guide for details.
schema:
type: string
- name: query
in: query
description: The query string.
schema:
type: string
- name: sort
in: query
description: The sort string.
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/pagesListGetResponse'
description: OK
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'406':
description: Not Acceptable
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Returns a list of all Pages on the Repository level.
tags:
- Pages
/projects/{projectId}/pages:
get:
operationId: getPages
parameters:
- name: projectId
in: path
description: The Project ID.
required: true
schema:
type: string
- name: page[size]
in: query
description: Limit the number of entities returned in a single response. See REST API User Guide for details.
schema:
type: integer
format: int32
- name: page[number]
in: query
description: Specify the page number to be returned. Counting starts from 1. See REST API User Guide for details.
schema:
type: integer
format: int32
- name: fields
in: query
description: Filter returned resource fields. See REST API User Guide for details.
style: deepObject
schema:
$ref: '#/components/schemas/sparseFields'
- name: include
in: query
description: Include related entities. See REST API User Guide for details.
schema:
type: string
- name: query
in: query
description: The query string.
schema:
type: string
- name: sort
in: query
description: The sort string.
schema:
type: string
- name: revision
in: query
description: The revision ID.
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/pagesListGetResponse'
description: OK
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'406':
description: Not Acceptable
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Returns a list of Pages from the Project context.
tags:
- Pages
/projects/{projectId}/spaces/{spaceId}/pages:
get:
operationId: getSpacePages
parameters:
- name: projectId
in: path
description: The Project ID.
required: true
schema:
type: string
- name: spaceId
in: path
description: The Space ID. (Use '_default' without quotes to address the default Space.)
required: true
schema:
type: string
- name: page[size]
in: query
description: Limit the number of entities returned in a single response. See REST API User Guide for details.
schema:
type: integer
format: int32
- name: page[number]
in: query
description: Specify the page number to be returned. Counting starts from 1. See REST API User Guide for details.
schema:
type: integer
format: int32
- name: fields
in: query
description: Filter returned resource fields. See REST API User Guide for details.
style: deepObject
schema:
$ref: '#/components/schemas/sparseFields'
- name: include
in: query
description: Include related entities. See REST API User Guide for details.
schema:
type: string
- name: query
in: query
description: The query string.
schema:
type: string
- name: sort
in: query
description: The sort string.
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/pagesListGetResponse'
description: OK
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'406':
description: Not Acceptable
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Returns a list of Pages from a given Project Space.
tags:
- Pages
post:
operationId: postPages
parameters:
- name: projectId
in: path
description: The Project ID.
required: true
schema:
type: string
- name: spaceId
in: path
description: The Space ID. (Use '_default' without quotes to address the default Space.)
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/pagesListPostRequest'
description: The Page(s) body.
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/pagesListPostResponse'
description: Created
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'406':
description: Not Acceptable
'409':
description: Conflict
'413':
description: Request Entity Too Large
'415':
description: Unsupported Media Type
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Creates a list of Pages.
tags:
- Pages
/projects/{projectId}/spaces/{spaceId}/pages/{pageName}:
delete:
operationId: deletePage
parameters:
- name: projectId
in: path
description: The Project ID.
required: true
schema:
type: string
- name: spaceId
in: path
description: The Space ID. (Use '_default' without quotes to address the default Space.)
required: true
schema:
type: string
- name: pageName
in: path
description: The Page name.
required: true
schema:
type: string
responses:
'204':
description: No Content
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'409':
description: Conflict
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Deletes the specified Page.
tags:
- Pages
get:
operationId: getPage
parameters:
- name: projectId
in: path
description: The Project ID.
required: true
schema:
type: string
- name: spaceId
in: path
description: The Space ID. (Use '_default' without quotes to address the default Space.)
required: true
schema:
type: string
- name: pageName
in: path
description: The Page name.
required: true
schema:
type: string
- name: fields
in: query
description: Filter returned resource fields. See REST API User Guide for details.
style: deepObject
schema:
$ref: '#/components/schemas/sparseFields'
- name: include
in: query
description: Include related entities. See REST API User Guide for details.
schema:
type: string
- name: revision
in: query
description: The revision ID.
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/pagesSingleGetResponse'
description: OK
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'406':
description: Not Acceptable
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Returns the specified Page.
tags:
- Pages
patch:
operationId: patchRichPage
parameters:
- name: projectId
in: path
description: The Project ID.
required: true
schema:
type: string
- name: spaceId
in: path
description: The Space ID. (Use '_default' without quotes to address the default Space.)
required: true
schema:
type: string
- name: pageName
in: path
description: The Page name.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/pagesSinglePatchRequest'
description: The Page body.
required: true
responses:
'204':
description: No Content
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'409':
description: Conflict
'413':
description: Request Entity Too Large
'415':
description: Unsupported Media Type
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Updates the specified Page.
tags:
- Pages
/projects/{projectId}/spaces/{spaceId}/pages/{pageName}/relationships/{relationshipId}:
delete:
operationId: deletePageRelationships
parameters:
- name: projectId
in: path
description: The Project ID.
required: true
schema:
type: string
- name: spaceId
in: path
description: The Space ID. (Use '_default' without quotes to address the default Space.)
required: true
schema:
type: string
- name: pageName
in: path
description: The Page name.
required: true
schema:
type: string
- name: relationshipId
in: path
description: The Relationship ID.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/relationshipsListDeleteRequest'
description: The Relationship body.
required: true
responses:
'204':
description: No Content
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'405':
description: Not Allowed
'409':
description: Conflict
'413':
description: Request Entity Too Large
'415':
description: Unsupported Media Type
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Deletes a list of Page Relationships.
tags:
- Pages
get:
operationId: getPageRelationships
parameters:
- name: projectId
in: path
description: The Project ID.
required: true
schema:
type: string
- name: spaceId
in: path
description: The Space ID. (Use '_default' without quotes to address the default Space.)
required: true
schema:
type: string
- name: pageName
in: path
description: The Page name.
required: true
schema:
type: string
- name: relationshipId
in: path
description: The Relationship ID.
required: true
schema:
type: string
- name: page[size]
in: query
description: Limit the number of entities returned in a single response. See REST API User Guide for details.
schema:
type: integer
format: int32
- name: page[number]
in: query
description: Specify the page number to be returned. Counting starts from 1. See REST API User Guide for details.
schema:
type: integer
format: int32
- name: fields
in: query
description: Filter returned resource fields. See REST API User Guide for details.
style: deepObject
schema:
$ref: '#/components/schemas/sparseFields'
- name: include
in: query
description: Include related entities. See REST API User Guide for details.
schema:
type: string
- name: revision
in: query
description: The revision ID.
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/RelationshipResponseBody'
description: OK
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'406':
description: Not Acceptable
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Returns a list of Page Relationships.
tags:
- Pages
patch:
operationId: patchPageRelationships
parameters:
- name: projectId
in: path
description: The Project ID.
required: true
schema:
type: string
- name: spaceId
in: path
description: The Space ID. (Use '_default' without quotes to address the default Space.)
required: true
schema:
type: string
- name: pageName
in: path
description: The Page name.
required: true
schema:
type: string
- name: relationshipId
in: path
description: The Relationship ID.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RelationshipsRequestBody'
description: The Relationship body.
required: true
responses:
'204':
description: No Content
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'409':
description: Conflict
'413':
description: Request Entity Too Large
'415':
description: Unsupported Media Type
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Updates a list of Page Relationships.
tags:
- Pages
post:
operationId: postPageRelationships
parameters:
- name: projectId
in: path
description: The Project ID.
required: true
schema:
type: string
- name: spaceId
in: path
description: The Space ID. (Use '_default' without quotes to address the default Space.)
required: true
schema:
type: string
- name: pageName
in: path
description: The Page name.
required: true
schema:
type: string
- name: relationshipId
in: path
description: The Relationship ID.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RelationshipsRequestBody'
description: The Relationship body.
required: true
responses:
'204':
description: No Content
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'405':
description: Not Allowed
'406':
description: Not Acceptable
'413':
description: Request Entity Too Large
'415':
description: Unsupported Media Type
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Creates a list of Rich Page Relationships.
tags:
- Pages
/spaces/{spaceId}/pages:
get:
operationId: getRepositorySpacePages
parameters:
- name: spaceId
in: path
description: The Space ID. (Use '_default' without quotes to address the default Space.)
required: true
schema:
type: string
- name: page[size]
in: query
description: Limit the number of entities returned in a single response. See REST API User Guide for details.
schema:
type: integer
format: int32
- name: page[number]
in: query
description: Specify the page number to be returned. Counting starts from 1. See REST API User Guide for details.
schema:
type: integer
format: int32
- name: fields
in: query
description: Filter returned resource fields. See REST API User Guide for details.
style: deepObject
schema:
$ref: '#/components/schemas/sparseFields'
- name: include
in: query
description: Include related entities. See REST API User Guide for details.
schema:
type: string
- name: query
in: query
description: The query string.
schema:
type: string
- name: sort
in: query
description: The sort string.
schema:
type: string
- name: revision
in: query
description: The revision ID.
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/pagesListGetResponse'
description: OK
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'406':
description: Not Acceptable
4XX-5XX:
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
description: 'Error responses have the following structure:'
'500':
description: Internal Server Error
'503':
description: Service Unavailable
summary: Returns a list of Pages in a given Space on the Repository level.
tags:
- Pages
components:
schemas:
RelationshipDataBody:
properties:
id:
example: MyProjectId/MyResourceId
type: string
type:
enum:
- collections
- categories
- documents
- document_attachments
- document_comments
- document_parts
- enumerations
- globalroles
- icons
- jobs
- linkedworkitems
- externallylinkedworkitems
- linkedoslcresources
- pages
- page_attachments
- page_comments
- plans
- projectroles
- projectgroups
- projects
- projecttemplates
- spaces
- testparameters
- testparameter_definitions
- testrecords
- teststep_results
- testruns
- testrun_attachments
- teststepresult_attachments
- testrun_comments
- usergroups
- users
- workitems
- workitem_attachments
- workitem_approvals
- workitem_comments
- featureselections
- teststeps
- workrecords
- revisions
- testrecord_attachments
- license_slots
- license_types
- license
- metadata
- license_assignments
- customfields
type: string
type: object
pagesSinglePatchRequest:
properties:
data:
properties:
type:
enum:
- pages
type: string
id:
example: MyProjectId/MySpaceId/MyRichPageId
type: string
attributes:
properties:
homePageContent:
properties:
type:
enum:
- text/html
- text/plain
type: string
value:
example: My text value
type: string
type: object
title:
example: Title
type: string
type: object
relationships:
properties:
watches:
properties:
data:
items:
properties:
id:
example: MyUserId
type: string
type:
enum:
- users
type: string
type: object
type: array
type: object
type: object
type: object
type: object
pagesListPostRequest:
properties:
data:
items:
properties:
type:
enum:
- pages
type: string
attributes:
properties:
homePageContent:
properties:
type:
enum:
- text/html
- text/plain
type: string
value:
example: My text value
type: string
type: object
pageName:
example: MyRichPageId
type: string
title:
example: Title
type: string
type: object
relationships:
properties:
author:
properties:
data:
properties:
id:
example: MyUserId
type: string
type:
enum:
- users
type: string
type: object
type: object
type: object
type: object
type: array
type: object
RelationshipDataSingleResponse:
properties:
data:
$ref: '#/components/schemas/RelationshipDataBody'
type: object
RelationshipsRequestBody:
description: List of generic contents
example:
data:
- type: MyResourceType
id: MyProjectId/MyResourceId
oneOf:
- $ref: '#/components/schemas/RelationshipDataSingleRequest'
- $ref: '#/components/schemas/RelationshipDataListRequest'
type: object
pagesListGetResponse:
properties:
data:
items:
properties:
type:
enum:
- pages
type: string
id:
example: MyProjectId/MySpaceId/MyRichPageId
type: string
revision:
example: '1234'
type: string
attributes:
properties:
created:
example: '1970-01-01T00:00:00Z'
format: date-time
type: string
homePageContent:
properties:
type:
enum:
- text/html
- text/plain
type: string
value:
example: My text value
type: string
type: object
pageName:
example: MyRichPageId
type: string
spaceId:
example: MySpaceId
type: string
title:
example: Title
type: string
updated:
example: '1970-01-01T00:00:00Z'
format: date-time
type: string
type: object
relationships:
properties:
attachments:
properties:
data:
items:
properties:
id:
example: MyProjectId/MySpaceId/MyRichPageId/MyAttachmentId
type: string
revision:
example: '1234'
type: string
type:
enum:
- page_attachments
type: string
type: object
type: array
meta:
properties:
totalCount:
format: int32
type: integer
type: object
type: object
author:
properties:
data:
properties:
id:
example: MyUserId
type: string
revision:
example: '1234'
type: string
type:
enum:
- users
type: string
type: object
type: object
project:
properties:
data:
properties:
id:
example: MyProjectId
type: string
revision:
example: '1234'
type: string
type:
enum:
- projects
type: string
type: object
type: object
updatedBy:
properties:
data:
properties:
id:
example: MyUserId
type: string
revision:
example: '1234'
type: string
type:
enum:
- users
type: string
type: object
type: object
watches:
properties:
data:
items:
properties:
id:
example: MyUserId
type: string
revision:
example: '1234'
type: string
type:
enum:
- users
type: string
type: object
type: array
meta:
properties:
totalCount:
format: int32
type: integer
type: object
type: object
type: object
links:
properties:
self:
example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/pages/MyRichPageId?revision=1234
type: string
type: object
meta:
properties:
errors:
items:
properties:
detail:
description: Human-readable explanation specific to this occurrence of the problem.
example: 'Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data)'
type: string
source:
properties:
parameter:
description: String indicating which URI query parameter caused the error.
example: revision
type: string
pointer:
description: JSON Pointer to the associated entity in the request document.
example: $.data
type: string
resource:
description: Resource causing the error.
properties:
id:
example: MyProjectId/id
type: string
type:
example: type
type: string
type: object
type: object
status:
description: HTTP status code applicable to this problem.
example: '400'
type: string
title:
description: Short, human-readable summary of the problem.
example: Bad Request
type: string
type: object
type: array
type: object
type: object
type: array
included:
description: Related entities might be returned, see REST API User Guide.
items:
type: object
type: array
links:
properties:
first:
example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/pages?page%5Bsize%5D=10&page%5Bnumber%5D=1
type: string
last:
example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/pages?page%5Bsize%5D=10&page%5Bnumber%5D=9
type: string
next:
example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/pages?page%5Bsize%5D=10&page%5Bnumber%5D=6
type: string
prev:
example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/pages?page%5Bsize%5D=10&page%5Bnumber%5D=4
type: string
self:
example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/pages?page%5Bsize%5D=10&page%5Bnumber%5D=5
type: string
type: object
meta:
properties:
totalCount:
format: int32
type: integer
type: object
type: object
sparseFields:
properties:
categories:
description: Requested fields
example: '@all'
type: string
collections:
description: Requested fields
example: '@all'
type: string
customfields:
description: Requested fields
example: '@all'
type: string
document_attachments:
description: Requested fields
example: '@all'
type: string
document_comments:
description: Requested fields
example: '@all'
type: string
document_parts:
description: Requested fields
example: '@all'
type: string
documents:
description: Requested fields
example: '@all'
type: string
enumerations:
description: Requested fields
example: '@all'
type: string
externallylinkedworkitems:
description: Requested fields
example: '@all'
type: string
featureselections:
description: Requested fields
example: '@all'
type: string
globalroles:
description: Requested fields
example: '@all'
type: string
icons:
description: Requested fields
example: '@all'
type: string
jobs:
description: Requested fields
example: '@all'
type: string
license:
description: Requested fields
example: '@all'
type: string
license_assignments:
description: Requested fields
example: '@all'
type: string
license_slots:
description: Requested fields
example: '@all'
type: string
license_types:
description: Requested fields
example: '@all'
type: string
linkedoslcresources:
description: Requested fields
example: '@all'
type: string
linkedworkitems:
description: Requested fields
example: '@all'
type: string
metadata:
description: Requested fields
example: '@all'
type: string
page_attachments:
description: Requested fields
example: '@all'
type: string
page_comments:
description: Requested fields
example: '@all'
type: string
pages:
description: Requested fields
example: '@all'
type: string
plans:
description: Requested fields
example: '@all'
type: string
projectroles:
description: Requested fields
example: '@all'
type: string
projects:
description: Requested fields
example: '@all'
type: string
projecttemplates:
description: Requested fields
example: '@all'
type: string
revisions:
description: Requested fields
example: '@all'
type: string
testparameter_definitions:
description: Requested fields
example: '@all'
type: string
testparameters:
description: Requested fields
example: '@all'
type: string
testrecord_attachments:
description: Requested fields
example: '@all'
type: string
testrecords:
description: Requested fields
example: '@all'
type: string
testrun_attachments:
description: Requested fields
example: '@all'
type: string
testrun_comments:
description: Requested fields
example: '@all'
type: string
testruns:
description: Requested fields
example: '@all'
type: string
teststep_results:
description: Requested fields
example: '@all'
type: string
teststepresult_attachments:
description: Requested fields
example: '@all'
type: string
teststeps:
description: Requested fields
example: '@all'
type: string
usergroups:
description: Requested fields
example: '@all'
type: string
users:
description: Requested fields
example: '@all'
type: string
workitem_approvals:
description: Requested fields
example: '@all'
type: string
workitem_attachments:
description: Requested fields
example: '@all'
type: string
workitem_comments:
description: Requested fields
example: '@all'
type: string
workitems:
description: Requested fields
example: '@all'
type: string
workrecords:
description: Requested fields
example: '@all'
type: string
type: object
RelationshipDataListRequest:
properties:
data:
items:
$ref: '#/components/schemas/RelationshipDataBody'
type: array
type: object
RelationshipDataListResponse:
properties:
data:
items:
$ref: '#/components/schemas/RelationshipDataBody'
type: array
type: object
relationshipsListDeleteRequest:
properties:
data:
items:
properties:
type:
enum:
- collections
- categories
- documents
- document_attachments
- document_comments
- document_parts
- enumerations
- globalroles
- icons
- jobs
- linkedworkitems
- externallylinkedworkitems
- linkedoslcresources
- pages
- page_attachments
- page_comments
- plans
- projectroles
- projectgroups
- projects
- projecttemplates
- spaces
- testparameters
- testparameter_definitions
- testrecords
- teststep_results
- testruns
- testrun_attachments
- teststepresult_attachments
- testrun_comments
- usergroups
- users
- workitems
- workitem_attachments
- workitem_approvals
- workitem_comments
- featureselections
- teststeps
- workrecords
- revisions
- testrecord_attachments
- license_slots
- license_types
- license
- metadata
- license_assignments
- customfields
type: string
id:
example: MyProjectId/MyResourceId
type: string
type: object
type: array
type: object
pagesSingleGetResponse:
properties:
data:
properties:
type:
enum:
- pages
type: string
id:
example: MyProjectId/MySpaceId/MyRichPageId
type: string
revision:
example: '1234'
type: string
attributes:
properties:
created:
example: '1970-01-01T00:00:00Z'
format: date-time
type: string
homePageContent:
properties:
type:
enum:
- text/html
- text/plain
type: string
value:
example: My text value
type: string
type: object
pageName:
example: MyRichPageId
type: string
spaceId:
example: MySpaceId
type: string
title:
example: Title
type: string
updated:
example: '1970-01-01T00:00:00Z'
format: date-time
type: string
type: object
relationships:
properties:
attachments:
properties:
data:
items:
properties:
id:
example: MyProjectId/MySpaceId/MyRichPageId/MyAttachmentId
type: string
revision:
example: '1234'
type: string
type:
enum:
- page_attachments
type: string
type: object
type: array
meta:
properties:
totalCount:
format: int32
type: integer
type: object
type: object
author:
properties:
data:
properties:
id:
example: MyUserId
type: string
revision:
example: '1234'
type: string
type:
enum:
- users
type: string
type: object
type: object
project:
properties:
data:
properties:
id:
example: MyProjectId
type: string
revision:
example: '1234'
type: string
type:
enum:
- projects
type: string
type: object
type: object
updatedBy:
properties:
data:
properties:
id:
example: MyUserId
type: string
revision:
example: '1234'
type: string
type:
enum:
- users
type: string
type: object
type: object
watches:
properties:
data:
items:
properties:
id:
example: MyUserId
type: string
revision:
example: '1234'
type: string
type:
enum:
- users
type: string
type: object
type: array
meta:
properties:
totalCount:
format: int32
type: integer
type: object
type: object
type: object
links:
properties:
self:
example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/pages/MyRichPageId?revision=1234
type: string
type: object
meta:
properties:
errors:
items:
properties:
detail:
description: Human-readable explanation specific to this occurrence of the problem.
example: 'Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data)'
type: string
source:
properties:
parameter:
description: String indicating which URI query parameter caused the error.
example: revision
type: string
pointer:
description: JSON Pointer to the associated entity in the request document.
example: $.data
type: string
resource:
description: Resource causing the error.
properties:
id:
example: MyProjectId/id
type: string
type:
example: type
type: string
type: object
type: object
status:
description: HTTP status code applicable to this problem.
example: '400'
type: string
title:
description: Short, human-readable summary of the problem.
example: Bad Request
type: string
type: object
type: array
type: object
type: object
included:
description: Related entities might be returned, see REST API User Guide.
items:
type: object
type: array
links:
properties:
self:
example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/pages/MyRichPageId?revision=1234
type: string
type: object
type: object
RelationshipDataSingleRequest:
properties:
data:
$ref: '#/components/schemas/RelationshipDataBody'
type: object
RelationshipResponseBody:
description: The Relationship's response body. Can return a single or a list of instances
example:
data:
- type: MyResourceType
id: MyProjectId/MyResourceId
oneOf:
- $ref: '#/components/schemas/RelationshipDataSingleResponse'
- $ref: '#/components/schemas/RelationshipDataListResponse'
type: object
pagesListPostResponse:
properties:
data:
items:
properties:
type:
enum:
- pages
type: string
id:
example: MyProjectId/MySpaceId/MyRichPageId
type: string
links:
properties:
self:
example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/pages/MyRichPageId?revision=1234
type: string
type: object
type: object
type: array
type: object
errors:
properties:
errors:
items:
properties:
status:
description: HTTP status code applicable to this problem.
example: '400'
type: string
title:
description: Short, human-readable summary of the problem.
example: Bad Request
type: string
detail:
description: Human-readable explanation specific to this occurrence of the problem.
example: 'Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data)'
type: string
source:
properties:
parameter:
description: String indicating which URI query parameter caused the error.
example: revision
type: string
pointer:
description: JSON Pointer to the associated entity in the request document.
example: $.data
type: string
resource:
description: Resource causing the error.
properties:
id:
example: MyProjectId/id
type: string
type:
example: type
type: string
type: object
type: object
type: object
type: array
type: object
securitySchemes:
bearerAuth:
bearerFormat: JWT
scheme: bearer
type: http