Category

Get Categories

Get all categories identified by {user_id}

GET /{user_id}/categories

Sample Request
GET /me/categories
Sample Response
{
    "code": "RESPONSE_SUCCESS"
    "data": {
        "count" : 2,
        "categories": [
        {
            "name": "engineering",
            "id": 300
        },
        {
            "name": "marketing",
            "id": 301
        }
        ]
    }
}

Create Category

Create category identified by {user_id}.

POST /{user_id}/categories

JSON Parameters
Name Type Description
name String Category name.
Sample Request
POST /me/categories
{
    "name": "API Development"
}
Sample Response
{
    "code": "RESPONSE_SUCCESS",
    "data": {
        "name": "API Development",
        "id": 1638
    }    
}

Rename Category

Rename a category name identified by {user_id} and {category_id}.

POST /{user_id}/categories/rename

JSON Parameters
Name Type Description
name String Category name.
id Number Category ID.
Sample Request
POST /me/categories/rename
{
    "name": "API Development",
    "id": "111222333"
}
Sample Response
{
    "code": "RESPONSE_SUCCESS"
}

Delete Category

Delete a category identified by {user_id} and {category_id}.

DELETE /{user_id}/categories/{category_id}

Sample Request
DELETE /me/categories/111222333
Sample Response
{
    "code": "RESPONSE_SUCCESS"
}

Assign Binders to a Category

Assign binders to a category identified by {user_id} and {category_id}.

POST /{user_id}/categories/{category_id}

JSON Parameters
Name Type Description
id (In binder of binders array) String Binder ID.
Sample Request
POST /me/categories/111222333
{
    "binders": [
    {
        "binder": {
            "id": "B7V4ze37oO08PYO70973lX6"
        }
    },
    {
        "binder": {
            "id": "B7V4ze37oO08PYO70973lX7"
        }
    }
    ]
}
Sample Response
{
    "code": "RESPONSE_SUCCESS"
}