Skip to main content
POST
/
auth
/
importdata
import data
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/auth/importdata \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'accountingPeriod=<string>' \
  --form 'salePeriod=<string>' \
  --form 'royaltySource=<string>' \
  --form file=@example-file
{
  "message": "Platform data Uploaded Successfully and Dataset being processed"
}
/auth/importdata Description:
The /auth/importdata endpoint allows users to import data by uploading a file, typically a CSV file containing relevant information. This endpoint is useful for importing data into the system for further processing or analysis.
Method:
POST
Request Parameters:
ParameterTypeDescriptionRequired
filefileThe CSV file to be uploaded.Yes
accountingPeriodstringThe accounting period associated with the data (YYYY-MM-DD)Yes
salePeriodstringThe sale period associated with the data (YYYY-MM-DD)Yes
royaltySourcestringThe source of royalties for the imported dataYes
See response example below

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Request Body

Responses

✅ 200 - Success

⚠️ 401 - Unauthorized

⚠️ 404 - Not Found

❌ 500 - Internal Server Error

Tags

Auth

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

multipart/form-data
file
file
required

The CSV file to be uploaded

accountingPeriod
string
required

The accounting period associated with the data (YYYY-MM-DD)

salePeriod
string
required

The sale period associated with the data (YYYY-MM-DD)

royaltySource
string
required

The source of royalties for the imported data

Response

Success

message
string
I