Colony

TRITECH MEDIA

COLONY REST API

GET POST OPTIONS

Description:

Provides the ability to list and create Dynamic Questions

Model:

{
    "field": "string", 
    "set": "int", 
    "question": "string", 
    "id": "int", 
    "options": "string"
}

Test:

You can test this API using the link below.

/construct/dynamicquestions/

GET PUT PATCH DELETE OPTIONS

Description:

Provides the ability to get put and destroy Dynamic Questions

Model:

{
    "field": "string", 
    "set": "int", 
    "question": "string", 
    "id": "int", 
    "options": "string"
}
POST OPTIONS

Description:

Model:

{}

Test:

You can test this API using the link below.

/construct/dynamicquestions/completed/

GET POST OPTIONS

Description:

Provides the ability to list and create FocusGroups

Model:

{
    "updated_by": "int", 
    "campaign": "int", 
    "title": "string", 
    "date_updated": "datetime", 
    "date_created": "datetime", 
    "company": "int", 
    "type": "int", 
    "id": "int", 
    "created_by": "int"
}

Test:

You can test this API using the link below.

/construct/focusgroups/

GET PUT PATCH DELETE OPTIONS

Description:

Provides the ability to get and put a FocusGroup

Model:

{
    "updated_by": "int", 
    "campaign": "int", 
    "title": "string", 
    "date_updated": "datetime", 
    "date_created": "datetime", 
    "company": "int", 
    "type": "int", 
    "id": "int", 
    "created_by": "int"
}
GET POST OPTIONS

Description:

Provides the ability to list and create FocusGroups

Model:

{
    "profile_field": "string", 
    "updated_by": "int", 
    "date_updated": "datetime", 
    "date_created": "datetime", 
    "order": "int", 
    "question": "string", 
    "id": "int", 
    "created_by": "int", 
    "focus_group": "int"
}

Test:

You can test this API using the link below.

/construct/focusgroups/questionnaire/

GET PUT PATCH DELETE OPTIONS

Description:

Provides the ability to get and put a FocusGroup

Model:

{
    "profile_field": "string", 
    "updated_by": "int", 
    "date_updated": "datetime", 
    "date_created": "datetime", 
    "order": "int", 
    "question": "string", 
    "id": "int", 
    "created_by": "int", 
    "focus_group": "int"
}
GET POST OPTIONS

Description:

Provides the ability to list and create Focus Group Questionnaire Answers

Model:

{
    "answer": "string", 
    "updated_by": "int", 
    "date_updated": "datetime", 
    "date_created": "datetime", 
    "question": "int", 
    "id": "int", 
    "created_by": "int", 
    "order": "int"
}

Test:

You can test this API using the link below.

/construct/focusgroups/answer

GET PUT PATCH DELETE OPTIONS

Description:

Provides the ability to get and put a FocusGroup

Model:

{
    "updated_by": "int", 
    "campaign": "int", 
    "title": "string", 
    "date_updated": "datetime", 
    "date_created": "datetime", 
    "company": "int", 
    "type": "int", 
    "id": "int", 
    "created_by": "int"
}
GET POST OPTIONS

Description:

Provides the ability to list and create Focus Group

Model:

{
    "mobile_no": "string", 
    "id": "int", 
    "complete": "int", 
    "focus_group": "int"
}

Test:

You can test this API using the link below.

/construct/focusgroups/contacts/

POST OPTIONS

Description:

Provides the ability to list and create FocusGroups

Model:

{}

Test:

You can test this API using the link below.

/construct/focusgroups/complete/

GET OPTIONS

Description:

Returns the total number of contacts a focus group has

Model:

{}

Test:

You can test this API using the link below.

/construct/focusgroups/progress/

GET OPTIONS

Description:

Returns the total number of contacts a focus group has

Model:

{}

Test:

You can test this API using the link below.

/construct/focusgroups/count-contacts/

POST OPTIONS

Description:

Allow a company to inject profile data into construct.

Expects data as a list of profiles in json, with at least a single identity field eg:

[{"name": "ken von ruben", "gender": "m", "country": "south africa", "mobile_number": "27826468020"}]

Model:

{}
GET OPTIONS

Description:

List all profile fields which is available within construct.

Only fields within the returned list will be accepted when trying to import external user profiles into construct.

If more fields are required they can be requested.

Model:

{}

Test:

You can test this API using the link below.

/construct/injectors/profiles/availablefields/

GET OPTIONS

Description:

dictionary of all profile fields and their "user friendly" names

Model:

{}

Test:

You can test this API using the link below.

/construct/injectors/profiles/cleanedavailablefields/

GET OPTIONS

Description:

Model:

{
    "category": "int", 
    "tags": "list", 
    "keywords": "string", 
    "title": "string", 
    "id": "int", 
    "additional_data": "unknown"
}
GET OPTIONS

Description:

Provides the ability to list active miner templates

Model:

{
    "id": "int", 
    "title": "string"
}

Test:

You can test this API using the link below.

/construct/miners/templates/

GET OPTIONS

Description:

Provides the ability to retrieve details on a miner template

Model:

{
    "id": "int", 
    "title": "string"
}
GET POST OPTIONS

Description:

Provides the ability to view active miners for all campaigns within a company

Model:

{
    "id": "int", 
    "campaign": "unknown", 
    "template": "int"
}

Test:

You can test this API using the link below.

/construct/miners/active/

GET PUT PATCH DELETE OPTIONS

Description:

Provides the ability to retrieve update or delete from active campaign miners

Model:

{
    "id": "int", 
    "campaign": "unknown", 
    "template": "int"
}

Nps

GET OPTIONS

Description:

Model:

{}

Test:

You can test this API using the link below.

/construct/nps/stats/hourly/

GET OPTIONS

Description:

Model:

{}

Test:

You can test this API using the link below.

/construct/nps/stats/total/

GET OPTIONS

Description:

Interface for performing queries on construct

Interface for performing queries on construct

Query and retrieve results

Model:

{}
GET OPTIONS

Description:

Interface for performing queries on construct

Interface for performing queries on construct

Query and retrieve results

Model:

{}
GET OPTIONS

Description:

Interface for performing queries on construct

Interface for performing queries on construct

Query and retrieve results

Model:

{}
GET POST OPTIONS

Description:

Listing of saved queries.

Model:

{
    "query_params": "string", 
    "order_by": "string", 
    "updated_by": "int", 
    "title": "string", 
    "date_updated": "datetime", 
    "query_type": "string", 
    "company": "int", 
    "created_by": "int", 
    "query_action": "string", 
    "owner": "int", 
    "date_created": "datetime", 
    "id": "int"
}

Test:

You can test this API using the link below.

/construct/query/saved/

GET PUT PATCH DELETE OPTIONS

Description:

Provides the ability to retrieve update or destroy a saved query

Model:

{
    "query_params": "string", 
    "order_by": "string", 
    "updated_by": "int", 
    "title": "string", 
    "date_updated": "datetime", 
    "query_type": "string", 
    "company": "int", 
    "created_by": "int", 
    "query_action": "string", 
    "owner": "int", 
    "date_created": "datetime", 
    "id": "int"
}
GET POST OPTIONS

Description:

Provides the ability to retrieve all available queries

Model:

{
    "query_params": "string", 
    "order_by": "string", 
    "updated_by": "int", 
    "title": "string", 
    "date_updated": "datetime", 
    "query_type": "string", 
    "company": "int", 
    "created_by": "int", 
    "query_action": "string", 
    "owner": "int", 
    "date_created": "datetime", 
    "id": "int"
}

Test:

You can test this API using the link below.

/construct/query/available/

POST OPTIONS

Description:

Provides the ability to export profile data

Model:

{}

Test:

You can test this API using the link below.

/construct/query/export/

GET POST OPTIONS

Description:

Provides listing ability for interactions

Model:

{}

Test:

You can test this API using the link below.

/construct/storehouse/interactions/company/

GET OPTIONS

Description:

Provides the ability to retrieve individual interactions

Model:

{}
GET OPTIONS

Description:

Provides ability to list interactions for a group

Model:

{}

Test:

You can test this API using the link below.

/construct/storehouse/interactions/group/

GET OPTIONS

Description:

Provides the ability to retrieve individual interactions on a group

Model:

{}
GET POST OPTIONS

Description:

Provides listing and creation ability for transactions.

Data will be going in with a POST, each transaction requires at least one identity field which can be found at /construct/injectors/profiles/availablefields/ as well as a date_received field.

Any fields required can be posted in such as invoice_no or part_no or whatever else is required, although only fields matching profile fields (which is found at the available fields url above) will be pulled into the actual profile.

as an example a transaction is sent through as a dictionary or a list of dictionaries for bulk operations.

{"date_received": "2014-01-01 15:00:00", "mobile_number": "27735522932", "invoice_no": 8822, "some_variable_field": "variable_data", "gender": "m", "campaign_id": 77}

Model:

{}

Test:

You can test this API using the link below.

/construct/storehouse/transactions/company/

GET POST OPTIONS

Description:

Provides the ability to list and create construct profiles

Model:

{}

Test:

You can test this API using the link below.

/construct/storehouse/profiles/company/

GET OPTIONS

Description:

Provides the ability to view stats on the health of data within a company.

Model:

{}

Test:

You can test this API using the link below.

/construct/storehouse/profiles/company/stats/

GET OPTIONS

Description:

Provides the ability to retrieve individual company profiles.

Model:

{}
GET OPTIONS

Description:

Provides the ability to list and create construct profiles

Model:

{}

Test:

You can test this API using the link below.

/construct/storehouse/profiles/group/

GET OPTIONS

Description:

Provides the ability to view stats on the health of data within a group.

Model:

{}

Test:

You can test this API using the link below.

/construct/storehouse/profiles/group/stats/

GET OPTIONS

Description:

Provides the ability to retrieve individual company profiles.

Model:

{}