These functions push data to GlassFrog and create new objects with POST HTTP requests.
They return a JSON with the copy of the object that was created in the body.
They are only available for People, Projects, Metrics, and Checklist Items.
Some of these functions also require an API Key belong to an administrator.
All POST functions begin with the post function.
gf.post() ...
Create a new person in GlassFrog with the attributes of $ATTRIBUTES:
gf.post().circles($ATTRIBUTES).then(...).catch(...);
{
"name": "Sally Benally",
"email": "[email protected]"
}
name and email are required fields.
Creates a new project in GlassFrog with the attributes of $ATTRIBUTES
gf.post().projects($ATTRIBUTES).then(...).catch(...);
{
"description": "API docs updated",
"circle_id": 346,
"role_id": 2331
}
Create a new metric in GlassFrog with the attributes of $ATTRIBUTES:
gf.post().metrics($ATTRIBUTES).then(...).catch(...);
{
"description": "A New Metric",
"frequency": "Weekly",
"circle_id": 856843816,
"role_id": 905502603
}
Create a new checklist item in GlassFrog with the attributes of $ATTRIBUTES:
Requires an admin API Key to create global items. Lead Links, Secretaries, or Rep Links can create items for their circle. Members may create items for roles they fill.
gf.post().checklistItems($ATTRIBUTES).then(...).catch(...);
{
"description": "A New Item",
"frequency": "Weekly",
"circle_id": 856843816,
"role_id": 905502603
}