Move Names

    EndpointDescription
    GET /v1/moves/namesGets a list of move names
    GET /v1/moves/names/:move_idGets a move name
    POST /v1/moves/names/:move_idUpdates a move name

    GET /v1/moves/names

    Gets a list of move names

    Request Parameters

    None

    Example Request

    Header:

    GET /v1/moves/names
    Host: api.pkmnapi.com
    Authorization: Bearer <access_token>
    

    Body:

    None

    Response Parameters

    Name Type Description
    data array
    data[] object
    data[].id string Move ID. (identical to :move_id)
    data[].type string Type of resource. Must be "move_names".
    data[].attributes object
    data[].attributes.name string Move name.
    data[].links object
    data[].links.self string Link to current resource.
    links object
    links.self string Link to list resource.

    Example Response

    Headers:

    HTTP/1.1 200 OK
    Content-Type: application/json
    Server: pkmnapi/0.1.0
    

    Body:

    {
        "data": [
            {
                "id": "1",
                "type": "move_names",
                "attributes": {
                    "name": "POUND"
                },
                "links": {
                    "self": "https://api.pkmnapi.com/v1/moves/names/1"
                }
            },
            ...
        ],
        "links": {
            "self": "https://api.pkmnapi.com/v1/moves/names"
        }
    }
    

    GET /v1/moves/names/:move_id

    Gets a move name

    Request Parameters

    Location Name Type Required? Description
    url :move_id string ✔️ Move ID.

    Example Request

    Header:

    GET /v1/moves/names/1
    Host: api.pkmnapi.com
    Authorization: Bearer <access_token>
    

    Body:

    None

    Response Parameters

    Name Type Description
    data object
    data.id string Move ID. (identical to :move_id)
    data.type string Type of resource. Must be "move_names".
    data.attributes object
    data.attributes.name string Move name.
    data.links object
    data.links.self string Link to current resource.
    links object
    links.self string Link to current resource.

    Example Response

    Headers:

    HTTP/1.1 200 OK
    Content-Type: application/json
    Server: pkmnapi/0.1.0
    

    Body:

    {
        "data": {
            "id": "1",
            "type": "move_names",
            "attributes": {
                "name": "POUND"
            },
            "links": {
                "self": "https://api.pkmnapi.com/v1/moves/names/1"
            }
        },
        "links": {
            "self": "https://api.pkmnapi.com/v1/moves/names/1"
        }
    }
    

    POST /v1/moves/names/:move_id

    Updates a move name

    Request Parameters

    Location Name Type Required? Description
    url :move_id string ✔️ Move ID.
    header X-Patch-Description string Description of change.
    body data object ✔️
    body data.type string ✔️ Type of data. Must be "move_names".
    body data.attributes object ✔️
    body data.attributes.name string ✔️ Move name.

    Example Request

    Header:

    POST /v1/moves/names/1
    Host: api.pkmnapi.com
    Authorization: Bearer <access_token>
    Content-Type: application/json
    X-Patch-Description: Update POUND move name
    

    Body:

    {
        "data": {
            "type": "move_names",
            "attributes": {
                "name": "SMACK"
            }
        }
    }
    

    Response Parameters

    None

    Example Response

    Headers:

    HTTP/1.1 202 Accepted
    Content-Type: application/json
    Server: pkmnapi/0.1.0
    

    Body:

    {}