Cloud
Link fixing API / Reference / REST API

Link fixing

Postman Collection
OpenAPI

APIs for updating links after Data Center to Cloud or Cloud to Cloud migrations

POST

Update links

Updates links that go to a a destination product (Jira, Confluence) that was migrated from Data Center or a different Cloud site.

Forge and OAuth2 apps cannot access this REST resource.

Request

Request bodyapplication/json

product

string

Required
productURL

string

Required
destinationURL

string

Required
migratedFrom

string

Required
migratedFromOverride

string

recreateAsRemote

boolean

createBackup

boolean

Responses

A link update has been scheduled. You should receive an ID that you can use to check the status.

application/json

ScheduledJobDTO
POST/jobs/cma
1 2 3 4 5 6 7 8 9 10 11 12 13 14 curl --request POST \ --url 'https://api.atlassian.com/links/v1/{siteId}/jobs/cma' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "product": "<string>", "productURL": "<string>", "destinationURL": "<string>", "migratedFrom": "<string>", "migratedFromOverride": "<string>", "recreateAsRemote": true, "createBackup": true }'
200Response
1 2 3 { "uuid": "<string>" }
GET

Get status by ID

Returns the status of a link update by ID.

Forge and OAuth2 apps cannot access this REST resource.

Request

Path parameters

jobId

string

Required

Responses

Successful operation

application/json

JobStatusDTO
GET/jobs/status/{jobId}
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/links/v1/{siteId}/jobs/status/{jobId}' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 { "id": "<string>", "status": "PENDING", "error": { "error": "UNAUTHENTICATED_ERROR", "description": "<string>", "details": "<string>", "productUri": "<string>" }, "linksMigrationResults": {}, "startTimeEpoch": 1701432850, "endTimeEpoch": 1701432850, "jobRequestDetails": { "product": "JIRA", "productURL": "<string>", "destinationURL": "<string>", "migratedFrom": "<string>", "createBackup": true } }
GET

Get status by product

Returns the statuses of all link updates performed for a given product.

Forge and OAuth2 apps cannot access this REST resource.

Request

Query parameters

product

string

Required
productURL

string

Required

Responses

Successful operation

application/json

array<JobStatusDTO>

GET/jobs/status
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/links/v1/{siteId}/jobs/status?product={product}&productURL={productURL}' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [ { "id": "<string>", "status": "PENDING", "error": { "error": "UNAUTHENTICATED_ERROR", "description": "<string>", "details": "<string>", "productUri": "<string>" }, "linksMigrationResults": {}, "startTimeEpoch": 1701432850, "endTimeEpoch": 1701432850, "jobRequestDetails": { "product": "JIRA", "productURL": "<string>", "destinationURL": "<string>", "migratedFrom": "<string>", "createBackup": true } } ]
GET

Get products by an organization

Returns the list of all products in an organization. You can use it to help you find products that might have links to update.

Forge and OAuth2 apps cannot access this REST resource.

Request

Path parameters

orgId

string

Required

Responses

Successful operation

application/json

array<ProductDTO>

GET/jobs/products/{orgId}
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/links/v1/{siteId}/jobs/products/{orgId}' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [ { "siteId": "<string>", "siteURL": "<string>", "lastMigrationTimeEpoch": 1701432850, "lastLinksUpdateTimeEpoch": 1701432850, "lastLinksUpdateStatus": "PENDING", "scopes": [ { "migratedFrom": "<string>", "destinationURL": "<string>", "productFamily": "JIRA" } ], "productFamily": "JIRA", "sandbox": true, "productKey": "<string>", "productName": "<string>" } ]
POST

Export audit log

Exports the audit log that shows every successful link modification for a given product from the last 29 days.

Forge and OAuth2 apps cannot access this REST resource.

Request

Request bodyapplication/json

product

string

Required
productURL

string

Required

Responses

The audit log is being generated. When completed, you'll receive an email with the download link.

application/json

RequestDescriptiveResultDTO
POST/report/links
1 2 3 4 5 6 7 8 9 curl --request POST \ --url 'https://api.atlassian.com/links/v1/{siteId}/report/links' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "product": "<string>", "productURL": "<string>" }'
202Response
1 2 3 { "result": "<string>" }
POST

Export history report

Exports the history report that shows the summary of all link updates for a given product and their summarized results.

Forge and OAuth2 apps cannot access this REST resource.

Request

Request bodyapplication/json

product

string

Required
productURL

string

Required

Responses

The history report is being generated. When completed, you'll receive an email with the download link.

application/json

RequestDescriptiveResultDTO
POST/report/jobs
1 2 3 4 5 6 7 8 9 curl --request POST \ --url 'https://api.atlassian.com/links/v1/{siteId}/report/jobs' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "product": "<string>", "productURL": "<string>" }'
202Response
1 2 3 { "result": "<string>" }

Rate this page: