Add To edit app details
parent
c7fc7fb545
commit
322c3ae60f
57
To-edit-app-details.md
Normal file
57
To-edit-app-details.md
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
# To edit app details:
|
||||||
|
|
||||||
|
## HTTP request type: `POST`
|
||||||
|
|
||||||
|
## Authorization required: Yes (Header: Bearer auth, key is located in .env file)
|
||||||
|
|
||||||
|
## Endpoint: `/editapp`
|
||||||
|
|
||||||
|
## Parameters required:
|
||||||
|
```
|
||||||
|
Multipart body:
|
||||||
|
|
||||||
|
1. Application ID from where to change it's details (footer, required): id: 784875887587
|
||||||
|
2. New Application Version (footer): ver: 1
|
||||||
|
3. New Application Description (footer): info: thisisatestedit
|
||||||
|
4. New Application name (footer): name: App Market Manager
|
||||||
|
5. New Application File (footer): file: [path to file]
|
||||||
|
5. New Application Path (footer): customPath: [path to file]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Output:
|
||||||
|
|
||||||
|
If it is successful:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"name": "App Market Manager",
|
||||||
|
"ver": "1",
|
||||||
|
"appid": "784875887587",
|
||||||
|
"info": "thisisatestedit",
|
||||||
|
"pub": "matu6968",
|
||||||
|
"path": "/uploads/App_Market_Manager/index.js"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
If there is no token or a invalid token:
|
||||||
|
```
|
||||||
|
Unauthorized
|
||||||
|
```
|
||||||
|
If there is no app ID specified:
|
||||||
|
```
|
||||||
|
App ID is required
|
||||||
|
```
|
||||||
|
If there is a invalid app ID specified:
|
||||||
|
```
|
||||||
|
App not found
|
||||||
|
```
|
||||||
|
If there is a problem while saving the uploaded file: (likely cause is directory where the binary is located is set to read only)
|
||||||
|
```
|
||||||
|
Failed to save file
|
||||||
|
```
|
||||||
|
If there is a problem while saving apps.json onto the host: (likely cause is directory where the binary is located is set to read only)
|
||||||
|
```
|
||||||
|
Failed to save app data
|
||||||
|
```
|
||||||
|
If there is invalid multipart body:
|
||||||
|
```
|
||||||
|
Invalid form data
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user