Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Latest commit

 

History

History
71 lines (56 loc) · 1.08 KB

File metadata and controls

71 lines (56 loc) · 1.08 KB

ignores Endpoint

The ignores endpoint retrieves or modifies your ignores.

Endpoint

ignores

Methods

GET, POST

Data returned for GET

{
    'data': [{                  // Contains the requested data
        'id': -1,               // ID of the user
        'username': 'xxxx'      // Name of the user
    }],
    'meta': {},
    'status': 'ok',
    'time': 'xx.xxxxxxxxxxx'
}

Parameters for POST

id: ID of the user you want to mute

{
    "id": -1
}

Possible error messages

Insufficient permissions (not being logged in)

{
    "data": [
        "You are not authorized to access this resource."
    ],
    "status": "notAuthorized",
}

id is missing

{
    "data": [
        "id is required"
    ],
    "status": "requestError",
}

Data returned for POST

{
    'data': [{                  // Contains the requested data
        'id': -1,               // ID of the user
        'username': 'xxxx'      // Name of the user
    }],
    'meta': {},
    'status': 'ok',
    'time': 'xx.xxxxxxxxxxx'
}