Link Search Menu Expand Document

Limits

/api/v2/limits

Get


Purpose

To allow a user to fetch the current list of character limits imposed on data being submitted.

Body Content [input]

{}

Returns if valid [output]

{
    limits: {
        access: {
            name: 50,
        },
        badge: {
            name: 20,
            description: 500,
        },
        comment: {
            comment: 1000,
        },
        group: {
            name: 50,
            description: 500,
        },
        highlight: {
            name: 50,
        },
        message: {
            message: 4000,
        },
        notification: {
            content: 750,
        },
        post: {
            content: 5000,
        },
        profile: {
            bio: 800,
            search: 300,
        },
        room: {
            name: 100,
            description: 500,
        },
        story: {
            content: 4000,
        },
        user: {
            name: 100,
            username: 40,
            email: 200,
            password: 250,
        },
    }
}

What the API does

  • Fetches the object storing all limits (in number of characters) that is provided as input to the API and returns it.