Variables
Last updated
Last updated
GET
https://api.appmixer.com/variables/:flowId
Get variables. Variables are placeholders that can be used in component config or inputs. These placeholders are replaced either at runtime by data coming from components connected back in the chain (dynamic variables) or by real values (static variables).
Get component config variables:
curl "https://api.appmixer.com/variables/93198d48-e680-49bb-855c-58c2c11d1857?componentId=e25dc901-f92a-46a2-8d29-2573d4ad65e5" -H "Authorization: Bearer [ACCESS_TOKEN]"
Get component input variables:
In this case, we identify the connection (one path in the flow graph) by source and target components, output port of the source component and input port of the target component. This address uniquely identifies one "link" in the flow graph.
curl "https://api.appmixer.com/variables/93198d48-e680-49bb-855c-58c2c11d1857?srcComponentId=ba09820f-db59-4739-b22d-414826842495&srcComponentOut=trigger&tgtComponentId=e25dc901-f92a-46a2-8d29-2573d4ad65e5&tgtComponentIn=message" -H "Authorization: Bearer [ACCESS_TOKEN]"
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
flowId*
String
srcComponentOut
String
Name of the output port of the source component.
srcComponentId
String
ID of the source (connected) component ID.
tgtComponentId
String
ID of the target component ID.
tgtComponentIn
String
Name of the input port of the target component.
componentId
String
The ID of the component for which we're requesting config static variables.