Skip to main content
Question

Parent relation card

  • October 8, 2024
  • 1 reply
  • 74 views

adriano.cesar

How can I set a parent relation to a specific card?

1 reply

giovana-valadao
Pipefy Staff

If you want to do this via API, you can use the createCardRelation mutation. Here is an example of how to use it:

mutation {
  createCardRelation(input:{
    childId: CHILD_CARD_ID,
    parentId: PARENT_CARD_IS,
    sourceId: CONNECTION_FIELD_INTERNAL_ID,
    sourceType: "Field"
  }) {
    cardRelation {
      id
      childId
      parentId
    }
  }
}

You can check more details about the mutation in our developers documentation or using our interactive playground.


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