# Channel

# Get All Channels

# Resource URL

https://humtog.com/api/admin/channels

# Resource Method

GET

# Example Response

{
    "data": [
        {
            "id": 10,
            "name": "channelName",
            "title": "channelTitle",
            "rules": "rules",
            "settings": null,
            "tagline": "tagline",
            "description": "description",
            "nsfw": false,
            "public": true,
            "cover_color": "Blue",
            "avatar": "/imgs/channel-avatar.png",
            ...
        },
        ...
    ],
    "links": {
        "first": "https://humtog.com/api/admin/channels?page=1",
        "last": null,
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "path": "https://humtog.com/api/admin/channels",
        "per_page": 90,
        "to": 4
    }
}

# Get Inactive Channels

# Resource URL

https://humtog.com/api/admin/channels/inactive

# Resource Method

GET

# Example Response

{
    "data": [
        {
            "id": 10,
            "name": "channelName",
            "title": "channelTitle",
            "rules": "rules",
            "settings": null,
            "tagline": "tagline",
            "description": "description",
            "nsfw": false,
            "public": true,
            "cover_color": "Blue",
            "avatar": "/imgs/channel-avatar.png",
            ...
        },
        ...
    ],
    "links": {
        "first": "https://humtog.com/api/admin/channels/inactive?page=1",
        "last": null,
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "path": "https://humtog.com/api/admin/channels/inactive",
        "per_page": 90,
        "to": 4
    }
}

# Get Suggested Channels

# Resource URL

https://humtog.com/api/admin/suggested-channels

# Resource Method

GET

# Example Response

{
    "data": [
        {
            "id": 10,
            "name": "channelName",
            "title": "channelTitle",
            "rules": "rules",
            "settings": null,
            "tagline": "tagline",
            "description": "description",
            "nsfw": false,
            "public": true,
            "cover_color": "Blue",
            "avatar": "/imgs/channel-avatar.png",
            ...
        },
        ...
    ],
    "links": {
        "first": "https://humtog.com/api/admin/suggested-channels?page=1",
        "last": null,
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "path": "https://humtog.com/api/admin/suggested-channels",
        "per_page": 90,
        "to": 4
    }
}

# Create Suggested Channels

# Resource URL

https://humtog.com/api/admin/suggested-channels

# Resource Method

POST

# Params

Name Required Type Description
channel_name Yes string Channel Name
z_index Yes integer Position of the channel, min 1.
group No string Name of suggestion group

# Example Response

{
    "data": {
        "id": 1,
        "z_index": 1,
        "group": null,
        "channel": {
            ...
        }
    }
}

# Delete Suggested Channels

# Resource URL

https://humtog.com/api/admin/suggested-channels/:suggested_id

# Resource Method

DELETE

# Example Response

{
    "message": "Channel is no longer suggested."
}