Description: Updates a JPD give its id.
Since: 4.0
Notes: Requires Artifactory Enterprise
Security: Requires an admin user
Usage: PUT /mc/api/v1/jpds/{id}
Return codes:
204 - No Content
400 - Failed to connect to the JPD. Please verify that the JPD information provided is correct
409 - Conflicts with an existing JPD (URL, name)
Consumes: application/json
{ + "name" : "<JPD name>", + "url" : "<JPD URL>", // The JPD base URL - "token" : "<Join Key>", // The JPD join key + "location" : { + "city_name" : "<City name>", + "country_code" : "<Country code>", + "latitude" : <Latitude>, + "longitude" : <Longitude> }, - "tags" : [ "<Tag 0>", "<Tag 1>" ] }
+=mandatory; -=optional
Sample Usage:
PUT /api/v1/jpds/JPD-3 { "name" : "new_name", "url" : "http://new-jpd-url:8080/jpd.test", "location" : { "city_name" : "Toulouse", "country_code" : "FR", "latitude" : 43.6043, "longitude" : 1.4437 } }