Regenerate the SFTP password
curl --request POST \
--url https://api.storiza.store/apps/{id}/sftp/regenerate \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.storiza.store/apps/{id}/sftp/regenerate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/apps/{id}/sftp/regenerate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"message": "SFTP password regenerated",
"data": {
"username": "<string>",
"password": "<string>",
"host": "<string>",
"port": 123,
"enabled": true
}
}App files
Regenerate the SFTP password
Replace the app’s SFTP password with a new one, revoking the old immediately. The username never changes — it is fixed for the app’s life, so anything referencing it keeps working with the new password.
Required API key permission: apps:write
POST
/
apps
/
{id}
/
sftp
/
regenerate
Regenerate the SFTP password
curl --request POST \
--url https://api.storiza.store/apps/{id}/sftp/regenerate \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.storiza.store/apps/{id}/sftp/regenerate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/apps/{id}/sftp/regenerate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"message": "SFTP password regenerated",
"data": {
"username": "<string>",
"password": "<string>",
"host": "<string>",
"port": 123,
"enabled": true
}
}Authorizations
An API key from the Storiza dashboard (API & Integrations), sent as Authorization: Bearer stz_….
Path Parameters
Minimum string length:
1Was this page helpful?