POST

Create component

Create a component via POST.

Request

Request bodyapplication/json

the request containing value of the component's property. The value has to be a valid, non-empty JSON conforming to http://tools.ietf.org/html/rfc4627. The maximum length of the property value is 32768 bytes.

archived

boolean

assigneeType

string

deleted

boolean

description

string

id

string

lead

UserBean

leadUserName

string

name

string

project

string

self

string

Responses

Returned if the component is created successfully.

application/json

ComponentBean
POST/api/2/component
1 2 3 4 5 curl --request POST \ --url 'http://{baseurl}/rest/api/2/component' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
GET

Get paginated componentsExperimental

Returns paginated list of filtered active components

Request

Query parameters

maxResults

string

query

string

projectIds

string

startAt

string

Responses

Returns paginated list of components

application/json

PageBean
GET/api/2/component/page
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/component/page' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
GET

Get project component

Returns a project component.

Request

Path parameters

id

string

Required

Responses

Returns a full JSON representation of a project component.

application/json

ComponentBean
GET/api/2/component/{id}
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/component/{id}' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
PUT

Update a component

Modify a component via PUT. Any fields present in the PUT will override existing values. As a convenience, if a field is not present, it is silently ignored.

Request

Path parameters

id

string

Required

Request bodyapplication/json

the request containing value of the component's property. The value has to be a valid, non-empty JSON conforming to http://tools.ietf.org/html/rfc4627. The maximum length of the property value is 32768 bytes.

archived

boolean

assigneeType

string

deleted

boolean

description

string

id

string

lead

UserBean

leadUserName

string

name

string

project

string

self

string

Responses

Returned if the component is successfully updated.

application/json

ComponentBean
PUT/api/2/component/{id}
1 2 3 4 5 curl --request PUT \ --url 'http://{baseurl}/rest/api/2/component/{id}' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
DEL

Delete a project component

Delete a project component.

Request

Path parameters

id

string

Required

Query parameters

moveIssuesTo

string

Responses

Returned if the component is successfully deleted.

DEL/api/2/component/{id}
1 2 3 curl --request DELETE \ --url 'http://{baseurl}/rest/api/2/component/{id}' \ --user 'email@example.com:<api_token>'
GET

Get component related issues

Returns counts of issues related to this component.

Request

Path parameters

id

string

Required

Responses

Returns counts of issues related to this component.

application/json

ComponentIssueCountsBean
GET/api/2/component/{id}/relatedIssueCounts
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/component/{id}/relatedIssueCounts' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'

Rate this page: