Operations about files
Find out more
updateNimbusFile
Code samples
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
}
r = requests.put('http://localhost:8080/api/v1/file', headers = headers)
print(r.json())
PUT /file
Update an existing file
Update an existing file by Id
Body parameter
Name
In
Type
Required
Description
Update an existent file in the store
Example responses
200 Response
Status
Meaning
Description
Schema
To perform this operation, you must be authenticated by means of one of the following methods: nimbus_auth ( Scopes: write:files read:files )
Code samples
POST /file
Add a new file to the store
Add a new file to the store
Body parameter
Name
In
Type
Required
Description
Create a new file in the store
Example responses
200 Response
Status
Meaning
Description
Schema
To perform this operation, you must be authenticated by means of one of the following methods: nimbus_auth ( Scopes: write:files read:files )
findNimbusFilesByStatus
Code samples
GET /file/findByStatus
Finds Files by status
Multiple status values can be provided with comma separated strings
Name
In
Type
Required
Description
Status values that need to be considered for filter
Enumerated Values
Example responses
200 Response
Status
Meaning
Description
Schema
Response Schema
Status Code 200
Name
Type
Required
Restrictions
Description
Unique id of the file object
Size of the file in bytes
Time when the file object was created
Optional metadata associated with the file (JSON format)
To perform this operation, you must be authenticated by means of one of the following methods: nimbus_auth ( Scopes: write:files read:files )
Code samples
GET /file/findByTags
Finds Files by tags
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Name
In
Type
Required
Description
Example responses
200 Response
Status
Meaning
Description
Schema
Status Code 200
Name
Type
Required
Restrictions
Description
Unique id of the file object
Size of the file in bytes
Time when the file object was created
Optional metadata associated with the file (JSON format)
To perform this operation, you must be authenticated by means of one of the following methods: nimbus_auth ( Scopes: write:files read:files )
getNimbusFileById
Code samples
GET /file/{fileId}
Find file by ID
Returns a single file
Name
In
Type
Required
Description
Example responses
200 Response
Status
Meaning
Description
Schema
To perform this operation, you must be authenticated by means of one of the following methods: api_key, nimbus_auth ( Scopes: write:files read:files )
uploadNimbusbusFile
Code samples
POST /file/{fileId}/uploadImage
uploads an image
Body parameter
Name
In
Type
Required
Description
Example responses
200 Response
Status
Meaning
Description
Schema
To perform this operation, you must be authenticated by means of one of the following methods: nimbus_auth ( Scopes: write:files read:files )
Code samples
POST /file/{fileId}
Updates a file in the store with form data
Name
In
Type
Required
Description
ID of file that needs to be updated
Name of file that needs to be updated
Status of file that needs to be updated
Status
Meaning
Description
Schema
To perform this operation, you must be authenticated by means of one of the following methods: nimbus_auth ( Scopes: write:files read:files )
deleteNimbusFile
Code samples
DELETE /file/{fileId}
Deletes a file
delete a file
Name
In
Type
Required
Description
Status
Meaning
Description
Schema
To perform this operation, you must be authenticated by means of one of the following methods: nimbus_auth ( Scopes: write:files read:files )