Description: Updates a JPD give its id.
Since: Artifactory 7.29
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" : "<Pairing Token>", // The JPD Pairing Token
+ "location" : {
+ "city_name" : "<City name>",
+ "country_code" : "<Country code>",
+ "latitude" : <Latitude>,
+ "longitude" : <Longitude>
},
- "tags" : [ "<Tag 0>", "<Tag 1>" ]
}+=mandatory; -=optional
Sample Usage:
PUT /mc/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
}
}