v10

latestOpenAPI 3.0.1raw.githubusercontent.com2025-12-033223581.2 MB
LookupTableRevision

Create LookupTableRevision

Create a new Revision for a Lookup Table.

Fields and Keys for Revision schema: Use the fields parameter to define a Revision schema containing up to 10 number or string fields. Use the keys parameter to specify which are the key fields:

  • At least one field must be a non-key field and at least one a key field.
  • Up to 5 key fields can be defined.
  • Using multiple key fields: ensure that the order in which they are defined matches the order in which you want to use them in any Lookup functions that reference the Revision's Lookup Table, because this is the order in which they will be passed into the function. The order of non-key fields is not constrained in this way.

Revision status: when you first create a Lookup Table Revision it has DRAFT status. Use the Update LookupTableRevision Status call to change a Revision's status.

post/organizations/{orgId}/lookuptables/{lookupTableId}/revisions

Path parameters

orgIdstring required

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

lookupTableIdstring required

UUID of the Lookup Table the Revision will be created for.

Request body

namestring required

Descriptive name for the Lookup Table Revision.

startDatestring date-time

The start date of the Lookup Table Revision.

keysstring[] required

The ordered keys of the Lookup Table Revision.

versioninteger

The version number of the entity:

  • Create entity: Not valid for initial insertion of new entity - do not use for Create. On initial Create, version is set at 1 and listed in the response.
  • Update Entity: On Update, version is required and must match the existing version because a check is performed to ensure sequential versioning is preserved. Version is incremented by 1 and listed in the response.
customFieldsobject

User defined fields enabling you to attach custom data. The value for a custom field can be either a string or a number.

If customFields can also be defined for this entity at the Organizational level, customField values defined at individual level override values of customFields with the same name defined at Organization level.

See Working with Custom Fields in the m3ter documentation for more information.

Response

Returns the created Lookup Table Revision

namestring

The name of the Lookup Table Revision.

status'DRAFT' | 'PUBLISHED' | 'ARCHIVED'

The status of the Lookup Table Revision

startDatestring date-time

The start date of the Lookup Table Revision

keysstring[]

The ordered keys of the Lookup Table Revision

dtCreatedstring date-time

The DateTime when the Lookup Table Revision was created.

dtLastModifiedstring date-time

The DateTime when the Lookup Table Revision was last modified.

createdBystring

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

lastModifiedBystring

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

itemCountinteger
idstring required

The UUID of the entity.

versioninteger

The version number:

  • Create: On initial Create to insert a new entity, the version is set at 1 in the response.
  • Update: On successful Update, the version is incremented by 1 in the response.
customFieldsobject

User defined fields enabling you to attach custom data. The value for a custom field can be either a string or a number.

If customFields can also be defined for this entity at the Organizational level,customField values defined at individual level override values of customFields with the same name defined at Organization level.

See Working with Custom Fields in the m3ter documentation for more information.