Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Create Remote Dashboard Issue using Curl #3434

Open
kuchanamounika opened this issue Sep 20, 2021 · 0 comments
Open

Create Remote Dashboard Issue using Curl #3434

kuchanamounika opened this issue Sep 20, 2021 · 0 comments

Comments

@kuchanamounika
Copy link

Hi Team,

I am trying to create the remote dashboard using /api/dashboard/remoteCreate RESTAPI in curl command, for that I created the api token as mentioned in the issue #2416

Below is curl command which I used for create dashboard

curl --location --request POST 'http://ip:port/api/dashboard/remoteCreate'
--header 'Content-Type: application/json'
--header 'apiUser: apiuser'
--header 'Authorization: apiToken$token'
--data-raw ''''{ "buildEntries": [{ "description": "MTA", "niceName":"Test","options": { "instanceUrl": "", "jobName": "MTA", "jobUrl": "" }, "pushed": false, "toolName": "Hudson" } ], "metaData": { "applicationName": "Test dashboard", "componentName": "Test dashboard", "owner": { "authType": "STANDARD", "username": "admin" }, "template": "splitview", "title": "Test dashboard", "type": "team" } }'''

I am getting issue like below
{
"timestamp": 1632146348562,
"status": 500,
"error": "Internal Server Error",
"exception": "java.lang.StringIndexOutOfBoundsException",
"message": "String index out of range: -1",
"path": "/api/dashboard/remoteCreate"
}

Can some one help me in resolve these issue.

'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant