Solved

How to create a card in Pipefy using the API

  • 22 July 2020
  • 2 replies
  • 1102 views

Userlevel 5

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""
}
]

icon

Best answer by Roberto Chavarria 22 July 2020, 20:05

View original

2 replies

Userlevel 5
Badge +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

 

 

Userlevel 6
Badge +8

Hi @Nigel O'connell 

 

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

Reply