Skip to main content
Question

Update the options of a field using an API

  • November 12, 2024
  • 1 reply
  • 53 views

Antonio van

I'm having some trouble using updatePhaseField in a start form.

I want to update the options of a field using an API

Any ideas of what to do?

Many thanks!

I found this conversation: 

 

1 reply

marcelo.shiba
Pipefy Staff
  • Pipefy Staff
  • 9 replies
  • November 13, 2024

I did a quick try wtth the following request and it worked for me:

mutation {
  updatePhaseField(
    input: {
      id: "vertical_radio"
      label: "some label"
      options: ["option1", "option2" ]
      required: false
      editable: true
    }
  ) {
    phase_field {
      id
      label
      options
    }
  }
}

Note that the whole options value will be updated, meaning that if there were previously values there, they will be replaced by `”option 1”, “option 2”` according to my example.


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