Malformed key for Project: name-branch:TASK/X00/XXXX-0000. Allowed characters are alphanumeric, '-', '_', '.' and ':', with at least one non-digit

I’m trying to create a project on my sonar via Bamboo with a curl:

curl -u ${password} -X POST -H ‘Content-type: application/json’ "http://my_sonar_host/api/projects/create?project=${KEY}&name=${KEY}

Where my project and name are something like TASK/X00/XXXX-0000, but this is giving the error:

Malformed key for Project: name-branch:TASK/X00/XXXX-0000. Allowed characters are alphanumeric, ‘-’, ‘_’, ‘.’ and ‘:’, with at least one non-digit

Is there any way to create using the name and project “name-branch:TASK/X00/XXXX-0000” with slashes?

Here are the project specifications:

Atlassian Bamboo version 6.8.0
SonarQube Version 6.7.6 (build 38781) - LGPL v3 - Community

Hello,

Project keys can not contain slashes (“/”) as suggested by the error message

Allowed characters are alphanumeric, ‘-’, ‘_’, ‘.’ and ‘:’, with at least one non-digit

The new key must contain at least one non-digit character. Allowed characters are: ‘a’ through ‘z’, ‘A’ through ‘Z’, ‘-’ (dash), ‘_’ (underscore), ‘.’ (dot), ‘:’ (colon) and digits ‘0’ to ‘9’.

One possible workaround would be to have a preliminary step before your curl command such that you replace the slashes with one of the accepted character (eg underscore “_”)

For example :

$>KEY=$(echo $KEY | tr "/" "_")
$>echo $KEY
name-branch:TASK_X00_XXXX-0000

As a side note , SonarQube Version 6.7.6 is EOL for a long time
Our current LTS version is now SonarQube 8.9 LTS

Eric