Update the SFTP properties on the server

put

/mftapp/rest/v1/artifacts/sftpProperties

Request

Supported Media Types
Header Parameters
Body ()
Root Schema : schema
Type: object
Show Source
Example Request (application/json)
{
    "enableSftp":"true",
    "keyAlias":"aliasName",
    "privateKeyPassword":"password"
}
Back to Top

Response

Supported Media Types

201 Response

SFTP properties were updated.

500 Response

Body ()
Root Schema : schema
Type: object
Show Source
Example Response (application/json)
{
    "errorCode":"MFT-6036",
    "errorKey":"MFT_CSF_KEY_DOES_NOT_EXIST_EXCEPTION",
    "errorMessage":"Key not found for the given key alias aliasName in credential store."
}
Back to Top

Examples

The following example shows how to update the SFTP properties on the server by submitting a PUT request on the REST resource using cURL.
curl -i -X PUT -u <username>:<password> -H "Content-type: application/json" -d '{"enableSftp":"true",   "keyAlias":"test_modify_key",   "privateKeyPassword":"password"}' http://host:port/mftapp/rest/v1/artifacts/sftpProperties 
 
Back to Top