Skip to main content
Solved

How to create a card in Pipefy using the API


Nigel O'connell
Pipefy Staff

Hi community

 

I'm trying to create a card in my pipe, but it only shows the error message ""query not found"":{""mutation"":""{ createCard( input:{ pipe_id:ID phase_id:ID title:'Test' fields_attributes:[ field_id:ID field_value:VALUE ]} ) { card { id title } } }""}Response:
{
""errors"": [
{
""message"": ""query not found""
}
]

Best answer by Roberto Chavarria

Hi there Nigel! 

It seems to be a syntax error. Here is the correct syntax for the createCard command:

mutation {
  createCard(input:{
    pipe_id: 1111 
    phase_id: 2222 
    title: "title of card" 
    fields_attributes: [{field_id:"field_id", field_value: "value"}] 
  }){
    card {
      id
      title
    }
  }
}



## field_id can be found using a query, looking within Phase object

 

 

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

2 replies

Roberto Chavarria
Pipefy Staff
Forum|alt.badge.img+5

Hi there Nigel! 

It seems to be a syntax error. Here is the correct syntax for the createCard command:

mutation {
  createCard(input:{
    pipe_id: 1111 
    phase_id: 2222 
    title: "title of card" 
    fields_attributes: [{field_id:"field_id", field_value: "value"}] 
  }){
    card {
      id
      title
    }
  }
}



## field_id can be found using a query, looking within Phase object

 

 


Ricardo Palhares
Forum|alt.badge.img+7

Hi @Nigel O'connell 

 

It is a unexpected error message and seems to be a technical issue. Did you tried chatting with Pipefy Help? 


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