Skip to main content
POST
/
worker
/
{id}
/
upload
Upload a file for a worker datasource
curl --request POST \
  --url https://api.reelevant.com/v2/datasources/worker/{id}/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data'
{
  "status": "success",
  "program": "<string>",
  "version": "<string>",
  "datetime": "<string>",
  "message": "<string>",
  "data": {
    "bucket": "<string>",
    "path": "<string>",
    "format": {
      "type": "csv",
      "options": {
        "csvDelimiter": "<string>"
      }
    },
    "textEncoding": "<string>"
  },
  "code": 123
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required
Pattern: ^[0-9a-fA-F]{24}$

Body

multipart/form-data

The body is of type string.

Response

Ok

status
enum<string>
required
Available options:
success
program
string
required
version
string
required
datetime
string
required
message
string
required
data
object
required
code
number