Files
Last updated
Last updated
Operations about files
Code samples
PUT /file
Update an existing file
Update an existing file by Id
Body parameter
body
body
File
true
Update an existent file in the store
Example responses
200 Response
200
Successful operation
File
400
Invalid ID supplied
None
404
File not found
None
422
Validation exception
None
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
body
body
File
true
Create a new file in the store
Example responses
200 Response
200
Successful operation
File
400
Invalid input
None
422
Validation exception
None
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/findByStatus
Finds Files by status
Multiple status values can be provided with comma separated strings
status
query
string
false
Status values that need to be considered for filter
Enumerated Values
status
available
status
pending
status
sold
Example responses
200 Response
200
successful operation
Inline
400
Invalid status value
None
Status Code 200
anonymous
[File]
false
none
none
» id
integer
false
none
Unique id of the file object
» fileName
string
false
none
Name of file
» fileURI
string¦null
false
none
URI of the file
» fileSize
integer
false
none
Size of the file in bytes
» createdAt
string(date-time)
false
none
Time when the file object was created
» metadata
object¦null
false
none
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.
tags
query
array[string]
false
Tags to filter by
Example responses
200 Response
200
successful operation
Inline
400
Invalid tag value
None
Status Code 200
anonymous
[File]
false
none
none
» id
integer
false
none
Unique id of the file object
» fileName
string
false
none
Name of file
» fileURI
string¦null
false
none
URI of the file
» fileSize
integer
false
none
Size of the file in bytes
» createdAt
string(date-time)
false
none
Time when the file object was created
» metadata
object¦null
false
none
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/{fileId}
Find file by ID
Returns a single file
fileId
path
integer(int64)
true
ID of file to return
Example responses
200 Response
200
successful operation
File
400
Invalid ID supplied
None
404
File not found
None
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 )
Code samples
POST /file/{fileId}/uploadImage
uploads an image
Body parameter
fileId
path
integer(int64)
true
ID of file to update
additionalMetadata
query
string
false
Additional Metadata
body
body
string(binary)
false
none
Example responses
200 Response
200
successful operation
ApiResponse
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
fileId
path
integer(int64)
true
ID of file that needs to be updated
name
query
string
false
Name of file that needs to be updated
status
query
string
false
Status of file that needs to be updated
400
Invalid input
None
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
DELETE /file/{fileId}
Deletes a file
delete a file
api_key
header
string
false
none
fileId
path
integer(int64)
true
File id to delete
400
Invalid file value
None
To perform this operation, you must be authenticated by means of one of the following methods: nimbus_auth ( Scopes: write:files read:files )