LookupTables

Use Lookup tables to create links between associated values in your source and target data, such as a State code in the source and its State abbreviation in the target. For example, your Contact data source may have an address field called State which is populated with picklist values of 1, 2 , 3, up to 50. The Contact data target has an equivalent field, but stores values of State abbreviations, such as "NH", "ME", and "VT", to represent the equivalent settings in that field. You can create a lookup table that maps the value of 1 in the source system to the value "NH" in the equivalent field in the target system. See Lookup Tables in the TIBCO Scribe® Help.

Endpoints — Use the links in the Endpoints section below to access the TIBCO Scribe® Swagger page and try out the API against your Organization.

Fields For LookupTables Endpoints — Review the field definition table below the list of Endpoints for detailed field level information.

Considerations

In some cases there are special considerations or use cases for specific endpoints that you should know about before you use the endpoint.

GET /v1/orgs/{orgId}/lookuptables

  • Lookup Table Values can be included as an option.

POST /v1/orgs/{orgId}/lookuptables

  • ID, CreationDate, ModificationBy, and LastModificationDate are supplied by the API. Lookup Table name must be unique for the Organization.
  • In some cases, a large Lookup table cannot be loaded with a single LookupTables POST call. If this call times out and returns a 504 error, add the Lookup table values one at a time using the LookupTables values POST call instead.

PUT /v1/orgs/{orgId}/lookuptables/{tableId}

  • Removes all Lookup Table Values and applies the Values specified.

GET /v1/orgs/{orgId}/lookuptables/{tableId}/export/{exportId}

  • Use the export ID returned by the GET /v1/orgs/{orgId}/lookuptables/{tableId}/export endpoint to retrieve an exported Lookup Table.

POST /v1/orgs/{orgId}/lookuptables/{tableId}/import

  • Lookup Table must exist before you import a CSV file containing values. Use POST /v1/orgs/{orgId}/lookuptables to create the Lookup Table first.

POST /v1/orgs/{orgId}/lookuptables/{tableId}/values

  • ID, CreationDate, ModificationBy, and LastModificationDate are supplied by the API.

GET /v1/orgs/{orgId}/lookuptables/{tableIdOrName}/values/value1/{value2}

  • In a case where there are duplicates, the first value alphabetically is returned.

GET /v1/orgs/{orgId}/lookuptables/{tableIdOrName}/values/value2/{value1}

  • In a case where there are duplicates, the first value alphabetically is returned.

Endpoints

Return a list of Lookup Tables

Create a Lookup Table

Return information about a Lookup Table

Import a CSV file into a Lookup Table

Return a list of Lookup Table Values for a Lookup Table

Create a Lookup Table Value

Return information about a Lookup Table Value

Return Lookup Table Value1 based on Lookup Table Value2

Return Lookup Table Value2 based on Lookup Table Value1

Fields For LookupTables Endpoints

The list of fields defined in this table is comprehensive across all LookupTables endpoints. See Endpoints for a list of LookupTables endpoints with links to the associated Swagger page.

Name
Type
Data Type

Description

Endpoints

Parameters

commaSeparatedValues

body

string

Lookup Table values in a comma separated format.

Required

Example with header row:

ID,State

1,NH

2,VT

Duplicates are allowed, however, the first item found alphabetically is returned.

  • POST /v1/orgs/{orgId}/lookuptables/{tableId}/import

exportId

path

integer

ID returned by the GET /v1/orgs/{orgId}/lookuptables/{tableId}/export method when a Lookup Table export is requested. Use this ID to retrieve the exported Lookup Table file using the GET /v1/orgs/{orgId}/lookuptables/{tableId}/export/{exportId} method. Required

  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/export/{exportId}

hasHeaderRow

query

boolean

When importing a CSV file containing a Lookup Table, indicates whether the first row of comma separated values contains column headings. Default value is true.

  • true —Contains column headings.
  • false — Does not contain column headings.
  • POST /v1/orgs/{orgId}/lookuptables/{tableId}/import
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}

includeLookupTableValues

query

boolean

Controls whether or not to return associated Lookup Table Values. Default is false.

  • true — Returns values.
  • false — Does not return values.
  • GET /v1/orgs/{orgId}/lookuptables
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}

limit

query

integer

Maximum number of Lookup Tables to return. Default value is 100.

See Reading Resources for more information on offset and limit parameters.

  • GET /v1/orgs/{orgId}/lookuptables
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values

model

body

model

Model for the Lookup Table record or the Lookup Table Value record being added or modified.

Note: When modifying a Lookup Table, all Lookup Table Values are removed and only Values included in the model are stored. Required

  • POST /v1/orgs/{orgId}/lookuptables
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}
  • POST /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}

offset

query

integer

Number of Lookup Tables to skip before returning results. Default value is 0.  

See Reading Resources for more information on offset and limit parameters.

  • GET /v1/orgs/{orgId}/lookuptables
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values

orgId

path

integer

Unique ID for each Organization. Required

All

tableId

path

string

GUID/UUID of the Lookup Table. Required

  • DELETE /v1/orgs/{orgId}/lookuptables/{tableId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/export
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/export/{exportId}
  • POST /v1/orgs/{orgId}/lookuptables/{tableId}/import
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • POST /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • DELETE /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}

tableIdOrName

path

string

GUID/UUID or Name of the Lookup Table. Required

  • GET /v1/orgs/{orgId}/lookuptables/{tableIdOrName}/values/value1/{value2}}
  • GET /v1/orgs/{orgId}/lookuptables/{tableIdOrName}/values/value2/{value1}}

value1

path

string

Value contained in the value1 field for the selected Lookup Table. Required

  • GET /v1/orgs/{orgId}/lookuptables/{tableIdOrName}/values/value2/{value1}}

value2

path

string

Value contained in the value2 field for the selected Lookup Table. An empty value, such as "" is valid. Required

  • GET /v1/orgs/{orgId}/lookuptables/{tableIdOrName}/values/value1/{value2}}

valueId

path

string

GUID/UUID of the Lookup Table Value. Required

  • DELETE /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}

Response

creationDate

response

string

Date and time in UTC time that the Lookup Table or Lookup Table Value was created.

  • GET /v1/orgs/{orgId}/lookuptables
  • POST /v1/orgs/{orgId}/lookuptables
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • POST /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}

description

response

string

User-specified description of the Lookup Table.

  • GET /v1/orgs/{orgId}/lookuptables
  • POST /v1/orgs/{orgId}/lookuptables
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}

exportId

response

string

ID returned by the GET /v1/orgs/{orgId}/lookuptables/{tableId}/export method when a Lookup Table export is requested. Use this ID to retrieve the exported Lookup Table file using the GET /v1/orgs/{orgId}/lookuptables/{tableId}/export/{exportId} method

  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/export

id

response

string

GUID/UUID of the Lookup Table or Lookup Table Value.

  • GET /v1/orgs/{orgId}/lookuptables
  • POST /v1/orgs/{orgId}/lookuptables
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • POST /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}

lastModificationDate

response

string

Date and time in UTC time that the Lookup Table or Lookup Table Value was last modified.

  • GET /v1/orgs/{orgId}/lookuptables
  • POST /v1/orgs/{orgId}/lookuptables
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}
  • POST /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}

modificationBy

response

string

User name of the logged in user who modified the record via the API. A value of Cloud indicates that the modification was made via the TIBCO Scribe® User Interface.

  • GET /v1/orgs/{orgId}/lookuptables
  • POST /v1/orgs/{orgId}/lookuptables
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • POST /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}

name

response

string

Name of the Lookup Table. Must be unique for the Organization.

  • GET /v1/orgs/{orgId}/lookuptables
  • POST /v1/orgs/{orgId}/lookuptables
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}

lookupTableValues

response

array

Array containing pairs of values in the Lookup Table.

  • GET /v1/orgs/{orgId}/lookuptables
  • POST /v1/orgs/{orgId}/lookuptables
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}

value1

response

string

First Lookup Table Value of the value pair, paired with value2.

  • GET /v1/orgs/{orgId}/lookuptables
  • POST /v1/orgs/{orgId}/lookuptables
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/export/{exportId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • POST /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableIdOrName}/values/value1/{value2}}

value2

response

string

Second Lookup Table Value of the value pair, paired with value1.

  • GET /v1/orgs/{orgId}/lookuptables
  • POST /v1/orgs/{orgId}/lookuptables
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/export/{exportId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • POST /v1/orgs/{orgId}/lookuptables/{tableId}/values
  • GET /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}
  • PUT /v1/orgs/{orgId}/lookuptables/{tableId}/values/{valueId}
  • GET /v1/orgs/{orgId}/lookuptables/{tableIdOrName}/values/value2/{value1}}

 

See

Endpoints

API Basics