Skip to main content
POST
/
organizations
/
{orgId}
/
lookuptables
/
{lookupTableId}
/
revisions
/
{lookupTableRevisionId}
/
data
/
generateuploadurl
Generate LookupTableRevisionData Upload URL
curl --request POST \
  --url https://api.m3ter.com/organizations/{orgId}/lookuptables/{lookupTableId}/revisions/{lookupTableRevisionId}/data/generateuploadurl \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fileName": "<string>",
  "contentType": "application/jsonl",
  "contentLength": 52428800,
  "version": 123
}
'
{
  "jobId": "<string>",
  "url": "<string>",
  "headers": {}
}

Authorizations

Authorization
string
header
required

m3ter supports machine to machine authentication using the clientCredentials OAuth2 flow.

The authorizationCode flow controls access for human users via the m3ter Console application.

Path Parameters

orgId
string
required

UUID of the Organization. The Organization represents your company as a direct customer of the m3ter service.

lookupTableId
string
required

UUID of the Lookup Table.

lookupTableRevisionId
string
required

UUID of the Lookup Table Revision.

Body

application/json

Request containing the file details when generating an upload URL

fileName
string
required

The name of the file to be uploaded.

Required string length: 1 - 100
contentType
enum<string>
required
Available options:
application/jsonl,
text/csv
contentLength
integer<int64>
required

The size of the file body in bytes. For example: "contentLength": 485, where 485 is the size in bytes of the file to upload.

Required range: 1 <= x <= 104857600
version
integer<int64>

Version of the Lookup Table Revision Data.

Response

Returns the upload URL.

Response containing the upload job URL details

jobId
string

UUID of the upload job

url
string

The presigned URL

headers
object