Colony

TRITECH MEDIA

COLONY REST API

GET OPTIONS

Description:

Model:

{
    "date_updated": "datetime", 
    "date_created": "datetime", 
    "id": "int", 
    "title": "string"
}

Test:

You can test this API using the link below.

/commence/accounts/group/

GET POST OPTIONS

Description:

Model:

{
    "billing_address": "string", 
    "group": "int", 
    "billing_email": "unknown", 
    "title": "string", 
    "web_site": "unknown", 
    "country": "string", 
    "billing_cycle_days": "int", 
    "vat_no": "string", 
    "telephone_number": "string", 
    "fax_number": "string", 
    "id": "int", 
    "currency": "string", 
    "date_updated": "datetime", 
    "timezone": "unknown", 
    "logo": "image file", 
    "date_created": "datetime", 
    "next_billing_date": "datetime", 
    "is_active": "boolean", 
    "slug": "unknown", 
    "suspension_warning": "boolean"
}

Test:

You can test this API using the link below.

/commence/accounts/company/

GET PUT PATCH OPTIONS

Description:

Provides the ability for a user within a company to view the details, ability for the owner to update the details.

Model:

{
    "billing_address": "string", 
    "group": "int", 
    "billing_email": "unknown", 
    "title": "string", 
    "web_site": "unknown", 
    "country": "string", 
    "billing_cycle_days": "int", 
    "vat_no": "string", 
    "telephone_number": "string", 
    "fax_number": "string", 
    "id": "int", 
    "currency": "string", 
    "date_updated": "datetime", 
    "timezone": "unknown", 
    "logo": "image file", 
    "date_created": "datetime", 
    "next_billing_date": "datetime", 
    "is_active": "boolean", 
    "slug": "unknown", 
    "suspension_warning": "boolean"
}
GET PUT PATCH OPTIONS

Description:

Provides ability to view and update the current user's account.

Model:

{
    "billing_address": "string", 
    "group": "int", 
    "billing_email": "unknown", 
    "title": "string", 
    "web_site": "unknown", 
    "country": "string", 
    "billing_cycle_days": "int", 
    "vat_no": "string", 
    "telephone_number": "string", 
    "fax_number": "string", 
    "id": "int", 
    "currency": "string", 
    "date_updated": "datetime", 
    "timezone": "unknown", 
    "logo": "image file", 
    "date_created": "datetime", 
    "next_billing_date": "datetime", 
    "is_active": "boolean", 
    "slug": "unknown", 
    "suspension_warning": "boolean"
}

Test:

You can test this API using the link below.

/commence/accounts/company/mine/

GET OPTIONS

Description:

gets countries, currencies and timezones

Model:

{}

Test:

You can test this API using the link below.

/commence/accounts/dropdowns/

DELETE OPTIONS

Description:

Allows an account admin to close their company account.

Will only disable if {"confirmed": true} is received in a delete. Returns {"disabled": True} or {"disabled": False} depending on the success of the operation.

Model:

{}

Test:

You can test this API using the link below.

/commence/accounts/company/disable/

DELETE OPTIONS

Description:

Allows an account admin to close their company account.

Will only disable if {"confirmed": true} is received in a delete. Returns {"disabled": True} or {"disabled": False} depending on the success of the operation.

Model:

{}
GET POST OPTIONS

Description:

Provides the ability to any user to list all other users within his/her company and allows a company owner to create more users within that company.

Model:

{
    "first_name": "string", 
    "last_name": "string", 
    "is_staff": "boolean", 
    "use_as_company": "int", 
    "user_is_active": "boolean", 
    "company": "int", 
    "is_imported": "boolean", 
    "power_pack": "int", 
    "id": "int", 
    "is_superuser": "boolean", 
    "email": "unknown", 
    "last_login": "datetime", 
    "view_group": "boolean", 
    "is_admin": "boolean", 
    "password": "string", 
    "slug": "unknown"
}

Test:

You can test this API using the link below.

/commence/accounts/user/

GET PUT PATCH OPTIONS

Description:

Provides ability to view and update the current user's account.

Model:

{
    "first_name": "string", 
    "last_name": "string", 
    "is_staff": "boolean", 
    "use_as_company": "int", 
    "user_is_active": "boolean", 
    "company": "int", 
    "is_imported": "boolean", 
    "power_pack": "int", 
    "id": "int", 
    "is_superuser": "boolean", 
    "email": "unknown", 
    "last_login": "datetime", 
    "view_group": "boolean", 
    "is_admin": "boolean", 
    "password": "string", 
    "slug": "unknown"
}

Test:

You can test this API using the link below.

/commence/accounts/user/me/

GET PUT PATCH OPTIONS

Description:

Provides ability to view and update the current user's account.

Model:

{
    "first_name": "string", 
    "last_name": "string", 
    "is_staff": "boolean", 
    "use_as_company": "int", 
    "user_is_active": "boolean", 
    "company": "int", 
    "is_imported": "boolean", 
    "power_pack": "int", 
    "id": "int", 
    "is_superuser": "boolean", 
    "email": "unknown", 
    "last_login": "datetime", 
    "view_group": "boolean", 
    "is_admin": "boolean", 
    "password": "string", 
    "slug": "unknown"
}
GET PUT PATCH OPTIONS

Description:

Provides the ability to any user to retrieve details on any other user within his/her company, company owners are allowed to update or destroy those users.

Model:

{
    "first_name": "string", 
    "last_name": "string", 
    "is_staff": "boolean", 
    "use_as_company": "int", 
    "user_is_active": "boolean", 
    "company": "int", 
    "is_imported": "boolean", 
    "power_pack": "int", 
    "id": "int", 
    "is_superuser": "boolean", 
    "email": "unknown", 
    "last_login": "datetime", 
    "view_group": "boolean", 
    "is_admin": "boolean", 
    "password": "string", 
    "slug": "unknown"
}
DELETE OPTIONS

Description:

Allows an account admin to disable a user's account

Returns {"disabled": True} or {"disabled": False} depending on the success of the operation.

Model:

{}
POST OPTIONS

Description:

Allows an account admin to enable a user's account

Returns {"enabled": True} or {"enabled": False} depending on the success of the operation.

Model:

{}
POST OPTIONS

Description:

Allows resetting of a user's password

Will only reset if {"confirmed": true} is received in a delete. Returns {"disabled": True} or {"disabled": False} depending on the success of the operation.

Model:

{}
GET OPTIONS

Description:

Returns a list of all the Activity objects available to the currently logged in user.

Model:

{
    "date_created": "datetime", 
    "user": "int", 
    "max_pos": "int", 
    "title": "string", 
    "cur_pos": "int", 
    "company": "int", 
    "issue": "string", 
    "id": "int", 
    "activity_type": "int"
}

Test:

You can test this API using the link below.

/commence/activities/

DELETE OPTIONS

Description:

Model:

{
    "date_created": "datetime", 
    "user": "int", 
    "max_pos": "int", 
    "title": "string", 
    "cur_pos": "int", 
    "company": "int", 
    "issue": "string", 
    "id": "int", 
    "activity_type": "int"
}
GET POST OPTIONS

Description:

Model:

{
    "date_sent": "datetime", 
    "date_read": "datetime", 
    "user": "int", 
    "read": "boolean", 
    "text": "string", 
    "type": "int", 
    "id": "int", 
    "subject": "string"
}

Test:

You can test this API using the link below.

/commence/notifications/

GET PUT PATCH OPTIONS

Description:

Model:

{
    "date_sent": "datetime", 
    "date_read": "datetime", 
    "user": "int", 
    "read": "boolean", 
    "text": "string", 
    "type": "int", 
    "id": "int", 
    "subject": "string"
}
GET OPTIONS

Description:

Provides the ability to list Packages eg. Basic, Pro, Enterprise

Model:

{
    "credits": "int", 
    "slug": "unknown", 
    "id": "int", 
    "title": "string"
}

Test:

You can test this API using the link below.

/commence/packages/

GET OPTIONS

Description:

Provides the ability to view details on an individual package.

Model:

{
    "credits": "int", 
    "slug": "unknown", 
    "id": "int", 
    "title": "string"
}
GET OPTIONS

Description:

Provides the ability to list Package prices within the users company / country scope

Model:

{
    "currency": "string", 
    "country": "string", 
    "price": "unknown", 
    "id": "int", 
    "package": "int"
}

Test:

You can test this API using the link below.

/commence/packages/price/

GET OPTIONS

Description:

Provides the ability to view details on an individual package price.

Model:

{
    "currency": "string", 
    "country": "string", 
    "price": "unknown", 
    "id": "int", 
    "package": "int"
}
GET OPTIONS

Description:

Provides the ability to view the current package for the user's company

Model:

{}

Test:

You can test this API using the link below.

/commence/packages/companypackage/

GET OPTIONS

Description:

Provides the ability to retrieve details on an individual power pack

Model:

{
    "tier": "int", 
    "slug": "unknown", 
    "id": "int", 
    "title": "string"
}
GET OPTIONS

Description:

Provides the ability to list role power packs

Model:

{
    "tier": "int", 
    "slug": "unknown", 
    "id": "int", 
    "title": "string"
}

Test:

You can test this API using the link below.

/commence/roles/

GET OPTIONS

Description:

Allows a user within a company to view the company wallet

Model:

{
    "packaged_credits": "int", 
    "purchased_credits": "int", 
    "date_updated": "datetime", 
    "date_created": "datetime", 
    "company": "unknown", 
    "send_without_credits": "boolean", 
    "id": "int"
}

Test:

You can test this API using the link below.

/commence/wallets/

POST OPTIONS

Description:

Allows a user within a company to create credit requests.

Model:

{
    "credits": "int", 
    "approved_by": "int", 
    "updated_by": "int", 
    "date_updated": "datetime", 
    "date_created": "datetime", 
    "company": "int", 
    "id": "int", 
    "created_by": "int"
}

Test:

You can test this API using the link below.

/commence/wallets/credit/request/

GET OPTIONS

Description:

Allows a user within a company to view the company's transactions

Model:

{
    "updated_by": "int", 
    "date_updated": "datetime", 
    "object_pk": "int", 
    "created_by": "int", 
    "wallet": "int", 
    "reason": "int", 
    "packaged_credits": "int", 
    "content_type": "int", 
    "date_created": "datetime", 
    "purchased_credits": "int", 
    "id": "int"
}

Test:

You can test this API using the link below.

/commence/wallets/transaction/

GET OPTIONS

Description:

Allows a user within a company to view an individual company transaction

Model:

{
    "updated_by": "int", 
    "date_updated": "datetime", 
    "object_pk": "int", 
    "created_by": "int", 
    "wallet": "int", 
    "reason": "int", 
    "packaged_credits": "int", 
    "content_type": "int", 
    "date_created": "datetime", 
    "purchased_credits": "int", 
    "id": "int"
}
PUT PATCH OPTIONS

Description:

Allows a user within a company to set credits threshold.

Model:

{
    "email_sent_date": "datetime", 
    "credit_threshold": "int", 
    "updated_by": "int", 
    "date_updated": "datetime", 
    "date_created": "datetime", 
    "company": "unknown", 
    "id": "int", 
    "created_by": "int"
}

Test:

You can test this API using the link below.

/commence/wallets/credit/threshold/