Skip to main content
Solved

Creating a card with an option field via api


nsbrown

Hey,

 

So I can create a card which works fine via Javascript, the issue I’m facing is populating the radio field.

 

Here’s my code:

const query = `mutation {
          createCard(input: {
            pipe_id:302543188,
            title: "New card 2",
            fields_attributes:[
              {field_id: "options", value: "Yes"},
            ],
          }) {
              card {
                title
              }
            }
          }`

 

The field in question has a name “Options” with a yes and no option.

 

Any help would be great.

Best answer by João Nicolete

Hi!

 

The problem is thats the correct param is “field_value”, not only “value”. If you correct it, it should work fine. You can see a example here: https://developers.pipefy.com/reference/cards

 

Let me know if that worked!

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

2 replies

João Nicolete
Pipefy Staff

Hi!

 

The problem is thats the correct param is “field_value”, not only “value”. If you correct it, it should work fine. You can see a example here: https://developers.pipefy.com/reference/cards

 

Let me know if that worked!


nsbrown
  • Author
  • Regular Participant
  • 1 reply
  • July 7, 2022

Thanks, can’t believe I missed that 🤦🏻


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