Hi there,
so I want to copy a dashboard using REST API
(https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-dashboards/#api-rest-api-3-dashboard-id-copy-post)
Showing the dashboard using REST API works nicely.
Creating new filters and changing the permission using REST API works as well.
But copying a dashboard produces the following error:
curl --location --request POST 'https://jira.xxx.com/rest/api/latest/dashboard/24765/copy' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Basic xxx' \
--data-raw '{
"name": "some name",
"description": "some description",
"sharePermissions": [
{
"type": "project",
"project": {
"id": "13831"
}
}
]
}'
Note: Your browser does not support JavaScript, Press Continue to proceed...
So I played around with the payload, especially that sharePermissions part, but I got similar errors.
Help me?
Marco Schmitz