Skip to main content
Solved

createCard API query


dev63
  • Regular Participant
  • 1 reply

Hi,
I am trying to make an API call to createCard referring to this link.

The documentation here seems to be a bit tricky. What are the fields passed inside the "fields_attributes"? 

How do I get the IDs of the fields in my instance?

Best answer by Nicole Chiroli

Hello @dev63, how are you doing today? :) 

To get your fields IDs you can use this query using the pipe ID:

{pipe (id:xxxxx){
    start_form_fields{
    id
    }
}
}

And then you can check the fields attributes using our documentation on the side:

Let me know if it helps! :) 

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

3 replies

Nicole Chiroli
Pipefy Staff
Forum|alt.badge.img+10
  • Product Manager
  • 301 replies
  • Answer
  • October 8, 2020

Hello @dev63, how are you doing today? :) 

To get your fields IDs you can use this query using the pipe ID:

{pipe (id:xxxxx){
    start_form_fields{
    id
    }
}
}

And then you can check the fields attributes using our documentation on the side:

Let me know if it helps! :) 


dev63
  • Author
  • Regular Participant
  • 1 reply
  • October 9, 2020

Hi,
Thanks for your response.

I’m not sure about the solution suggested above. 

The field IDs in the response of the phase query relate to the phase entities. These do not match any fields of a card in the pipe.

I am more concerned about the card field IDs in a pipe.

Also, can you link me to the site where you are trying out these APIs (API playground)?

Thank you,

 


Nicole Chiroli
Pipefy Staff
Forum|alt.badge.img+10

Hello @dev63! I sent you the wrong query, I am sorry for the confusion. You need to check the fields on the start form to be able to create cards. 


So you can use this one:

{pipe (id:xxxxx){
    start_form_fields{
    id
    }
}
}

And to check the documentation I sent you and use our API, you can access here https://app.pipefy.com/graphiql 

I am also correcting the answer so it wont be confusing for other users. Let me know if you need any other help! 


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