Skip to main content
Solved

Write business terms using graphQL

  • May 14, 2025
  • 1 reply
  • 27 views

Forum|alt.badge.img

Is there any mutation to create terms in Ataccama web using API.

Best answer by Albert de Ruiter

Hi ​@Hanish N ,

In the graphQL Playground you can apply mutations like:

mutation createBizTerm {

    businessTermCreate(

        new: { _type: "businessTerm", abbreviation: "MT", name: "Mutation Term" }

        parentGid: "00000000-0000-0000-0000-000000000001"

        parentNode: "metadata"

        parentProperty: "terms"

    ) {

      success

      result {

        gid

        publishedVersion {

          name

       }

        draftVersion {

          name

       }

    }

}

Myself I have a different approach by using OneDesktop: reading the term details from a text file and writing with a Metadata Writer. This allows you to load new terms in bulk, which is not possible using the Playground.

Kind regards,

Albert

 

View original
Did this topic help you find an answer to your question?

1 reply

Albert de Ruiter
Rocket Pioneer L1
Forum|alt.badge.img+4

Hi ​@Hanish N ,

In the graphQL Playground you can apply mutations like:

mutation createBizTerm {

    businessTermCreate(

        new: { _type: "businessTerm", abbreviation: "MT", name: "Mutation Term" }

        parentGid: "00000000-0000-0000-0000-000000000001"

        parentNode: "metadata"

        parentProperty: "terms"

    ) {

      success

      result {

        gid

        publishedVersion {

          name

       }

        draftVersion {

          name

       }

    }

}

Myself I have a different approach by using OneDesktop: reading the term details from a text file and writing with a Metadata Writer. This allows you to load new terms in bulk, which is not possible using the Playground.

Kind regards,

Albert

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings