Create LookupTableRevision
Changed onCreate 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.
Request
- Base URLhttps://api.m3ter.com
- AuthOAuth 2Authorization codehttps://m3ter.auth.us-east-1.amazoncognito.com/oauth2/authorize, token URL https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/tokenClient credentialsToken URL /oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
UUID of the Organization. The Organization represents your company as a direct customer of the m3ter service.
UUID of the Lookup Table the Revision will be created for.
Request body
Example request
{
"fields": [
{
"name": "lookuptablerevisionfieldkey"
}
],
"keys": [
"foo",
"bar"
]
}Response
Returns the created Lookup Table Revision
Example response
{
"fields": [
{
"name": "lookuptablerevisionfieldkey"
}
]
}Changes
- breaking
added
subschema #1subschema #2to the/////request propertyallOflist - breaking
the
////request property type changed from no type toobject - breaking
the
////response's property type changed from no type toobjectfor status - warning
removed
subschema #2from the//request propertyallOflist - info
added the optional property
to the response with the status - info
removed
subschema #2from the//response propertyallOflist for the response status - info
removed
subschema #2from theresponse propertyallOflist for the response status
- breaking
- info
endpoint added
- info