Submit DevOps Components
Update / insert DevOps Component data.
Components are identified by their ID, and existing Component data for the same ID will be replaced if it exists and the updateSequenceNumber of existing data is less than the incoming data.
Submissions are performed asynchronously. Submitted data will eventually be available in Jira; most updates are available within a short period of time, but may take some time during peak load and/or maintenance times. The getComponentById operation can be used to confirm that data has been stored successfully (if needed).
In the case of multiple Components being submitted in one request, each is validated individually prior to submission. Details of which Components failed submission (if any) are available in the response object.
A maximum of 1000 components can be submitted in one request.
Only Connect apps that define the jiraDevOpsComponentProvider module can access this resource. This resource requires the 'WRITE' scope for Connect apps.
Request body
Example request
{
"properties": {
"accountId": "account-234",
"projectId": "project-123"
},
"devopsComponents": [
{
"schemaVersion": "1.0",
"id": "111-222-333",
"updateSequenceNumber": 1523494301448,
"name": "Galactus",
"providerName": "Marvel",
"url": "https://example.com/project/MS/galactus/summary",
"avatarUrl": "https://example.com/project/MS/galactus/logo",
"tier": "Tier 1",
"componentType": "Service",
"lastUpdated": "2018-01-20T23:27:25.000Z"
}
],
"providerMetadata": {
"product": "Atlassian Operations Platform 2.1.0"
}
}Response
Submission accepted. Each submitted Component that is of a valid format will be eventually available in Jira. Details of which Components were submitted and which failed submission (due to data format problems etc.) are available in the response object.
Example response
{
"acceptedComponents": [
"111-222-333",
"444-555-666"
],
"unknownProjectKeys": [
"PROJ"
]
}