This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
multipart/form-data
Response
Success
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
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"
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/auth/importdata', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Success