File Store

API Contract Link

Uploads different kinds of files to server.

The endpoint for uploading file in the system.

post

/files

Body
filestring · binaryrequired

The file to upload.

tenantIdstringrequired

Unique ulb identifier.

modulestring

module name.

tagstring

tag name.

Responses
curl -L \
  --request POST \
  --url '/filestore/v1/files' \
  --header 'Content-Type: multipart/form-data' \
  --data '{"file":"text","tenantId":"text"}'
{
  "files": [
    {
      "fileStoreId": "text",
      "tenantId": "text"
    }
  ]
}

Search file url based on tenantid and filestoreid.

Search file url.

get

/files/url

Query parameters
fileStoreIdsstringrequired

Unique filestoreids.

Responses
curl -L \
  --url '/filestore/v1/files/url?fileStoreIds=text'
{
  "filestoreId": [
    "text"
  ]
}

Search file url based on tenantid and tag name.

Search file url.

get

/files/tag

Query parameters
tagstringrequired

tag name.

Responses
curl -L \
  --url '/filestore/v1/files/tag?tag=text'
{
  "files": [
    {
      "url": "text",
      "contetntType": "text"
    }
  ]
}

Get metadata of file based on tenantId and filestoreId.

metadata of file.

get

/files/metaData

Query parameters
fileStoreIdstringrequired

Unique fileStoreId.

Responses
curl -L \
  --url '/filestore/v1/files/metaData?fileStoreId=text'
{
  "fileName": "text",
  "contetntType": "text",
  "tenantId": "text",
  "resource": "text",
  "fileSize": "text"
}

Search file url based on tenantid and filestoreid.

Search file url.

get

/files/id

Query parameters
fileStoreIdstringrequired

fileStore id.

Responses
curl -L \
  --url '/filestore/v1/files/id?fileStoreId=text'

No body

Last updated

Was this helpful?