Skip to main content
PUT
/
organizations
/
{orgId}
/
lookuptables
/
{lookupTableId}
/
revisions
/
{lookupTableRevisionId}
/
data
Upsert LookupTableRevisionData
curl --request PUT \
  --url https://api.m3ter.com/organizations/{orgId}/lookuptables/{lookupTableId}/revisions/{lookupTableRevisionId}/data \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {}
  ],
  "version": 123
}
'
{
  "items": [
    {}
  ],
  "dtCreated": "2023-11-07T05:31:56Z",
  "dtLastModified": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastModifiedBy": "<string>",
  "version": 123
}

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.

Query Parameters

additional
string[]

Comma separated list of additional fields. For example, you can use additional=lookupKey to get the lookup key returned for each Data item. You can then use a lookup key for the Get/Upsert/Delete data entry endpoints in this section.

Body

application/json
items
object[]
required

The data for a lookup table revision

Maximum array length: 2000
version
integer<int64>

The version of the LookupTableRevisionData.

Response

Returns the upserted LookupTableRevisionData

Response containing data for a Lookup Table Revision

items
object[]
required

The Lookup Table Revision Data.

Maximum array length: 2000
dtCreated
string<date-time>

The DateTime when the Lookup Table Revision Data was created.

dtLastModified
string<date-time>

The DateTime when the Lookup Table Revision Data was last modified.

createdBy
string

The id of the user who created the Lookup Table Revision Data.

lastModifiedBy
string

The id of the user who last modified the Lookup Table Revision Data.

version
integer<int64>

The version of the Lookup Table Revision Data.