Fetch Line Attributes
3 min
read line attribute definitions with graphql post /async/graphql query the lineattribute type curl x post '{baseurl}/async/graphql' \\ h 'nue api key your api key' \\ h 'content type application/json' \\ d '{"query" "query { lineattribute { id name isactive scope mappedfieldapiname } }"}' { "data" { "lineattribute" \[ { "id" "a1sa ", "name" "overage rate", "isactive" true, "scope" \["line editor"], "mappedfieldapiname" "overage rate c" } ] } } filtering use a where clause to narrow results — for example, only active attributes curl x post '{baseurl}/async/graphql' \\ h 'nue api key your api key' \\ h 'content type application/json' \\ d '{"query" "query { lineattribute(where { isactive { eq\ true } }) { id name scope mappedfieldapiname } }"}' for more on querying — relationship traversal, aggregations, and operators — see query nue objects using graphql guides and examples/nue platform/query nue objects using graphql mdx