Solved

Create card with labes - using API

  • 23 August 2022
  • 1 reply
  • 353 views

Userlevel 2
In the form there is the Label field with the value "test" as shown in the image below:

 

when I create GraphQL and pass the input label I can't register, here's the image:

 

 

 

Follow my configured form

 

 

icon

Best answer by julia-pinheiro 23 August 2022, 17:02

View original

1 reply

Userlevel 6
Badge +1

Hi!

For fields of type "label", it is necessary to use the ID of the label and not the name of it, as you tried.

To find the ID of the label use the following query:

{
pipe(id: xxxx){
labels{
name
id
}
}
}

So, in your case it’d be:

{field_id: “label”, field_value: “ID FOUND”}

and for more than one label:

{field_id: “label”, field_value: [“ID FOUND1”,“ID FOUND2”]},

 

Reply