Create Repo via Rest Help

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Create Repo via Rest Help

viren karia
This post was updated on .
Hi,

I am new to Artifactory and need assistance with creation of Repo via Rest API. I am getting a strange error. Please assist (____ is replaced by actual values in my env)

curl -u vk____:Vk_________ -i -X PUT http://______________:8081/artifactory/api/repositories/poc-vkcli-generic?pos=2 -H "content-type:application/json" -T setuprepo.json

HTTP/1.1 100 Continue

HTTP/1.1 400 Bad Request
Server: Artifactory/4.7.0
X-Artifactory-Id: abf14678cf1d1011e3b798a4efffac24f3d89f39
X-Artifactory-Node-Id: artPOC1
Content-Type: application/json
Transfer-Encoding: chunked
Date: Mon, 30 May 2016 05:48:40 GMT
Connection: close

{
  "errors" : [ {
    "status" : 400,
    "message" : "Docker Repository poc_xxxxDev_Cert must be in lower case\n"
  } ]
}

-----------------------------------------------------------------------------------------------
contents of setuprepo.json

{
   "key": "poc-vkcli-generic",
   "rclass" : "local",
   "packageType": "generic",
   "description": "The local repository public description created via CLI",
   "notes": "Some internal notes"
}