CMS Api : Is there a way to map or link a Dictionnary to an attribute in a type definition ?

Options

I need a way to use the Dictionnary with an attribute in a type defintion in Content Metadata ? -

Thank you

Best Answer

  • jpluimers
    jpluimers E Community Moderator
    #2 Answer ✓
    Options

    @Med_2024, create a dictionary, add values, then you can update the attribute definition of a type by adding the dictionary_definition and guid to it.

    There is an example in the Content Metadata service API create new type definition. See POST /type-definitions/{catagory}, then in the Examples dropdown select 'With dictionary_definition'.

    Note that today it is not yet possible to create a dictionary in the VS Code type modeler.

Answers

  • jpluimers
    jpluimers E Community Moderator
    #3 Answer ✓
    Options

    @Med_2024, create a dictionary, add values, then you can update the attribute definition of a type by adding the dictionary_definition and guid to it.

    There is an example in the Content Metadata service API create new type definition. See POST /type-definitions/{catagory}, then in the Examples dropdown select 'With dictionary_definition'.

    Note that today it is not yet possible to create a dictionary in the VS Code type modeler.

  • Med_2024
    edited February 5 #4
    Options

    @jpluimers , thank you for the response , just a question what's the guid in ? " create a dictionary, add values,

    then you can update the attribute definition of a type by adding the dictionary_definition and guid to it."

    And when creating a new type instance of that type-definition , how to pass the value of the attribute linked to

    the dictionnary ?

  • Med_2024
    edited February 5 #5
    Options

    @jpluimers

    @jpluimers , thank you for the response , just a question what's the guid in ? " create a dictionary, add values,

    then you can update the attribute definition of a type by adding the dictionary_definition and guid to it."

    And when creating a new type instance of that type-definition , how to pass the value of the attribute linked to

    the dictionnary ?

    I tried creating a dictionnary with

    , but faced a 404 error , is this API available with Ot Developer trial account ? or is this url correct ? https://na-1-dev.api.opentext.com/dictionary/v1/dictionaries ??

  • jpluimers
    jpluimers E Community Moderator
    Options

    @Med_2024 , the Dictionary service is not yet part of the trial plan. It will be added later.