Skip to main content
Solved

Create card with labes - using API

  • 23 August 2022
  • 1 reply
  • 414 views

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

 

 

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