• Resolved wellingtonkri

    (@wellingtonkri)


    we are using the WP DOWNLOAD MANAGER API complement, it is working correctly, however when we try to send the package AUTHOR it always returns as ID 1, even putting other user IDs, such as 7 or 8

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @wellingtonkri

    Thank you for your query.

    Can you please let us know which API endpoint you are using as of now?

    Regards

    Thread Starter wellingtonkri

    (@wellingtonkri)

    we are giving a post on the /wp-json/wpdm/v1/packages endpoint and sending the following json but the author always returns to id 1

    {
            "title": "11585-15",
            "description": "05-06-2023",
            "excerpt": "2023-06-05",
            "author": 7,
            "status": "publish",
            "version": "2392,90",
             "categories": [
                16
            ],
            "user_access": [
                "TESTE",
                "TESTE123"
            ],
            "template": "lista",
            "page_template": "boletopage",
            "files": {
                "MXfSFqdUud157cqpWhxu": "https://--------------.com.br/boletos/MXfSFqdUud157-------.pdf"
            }
        }
    Plugin Contributor Shafaet Alam

    (@shafayat-alam)

    Please update wpdm rest api plugin, it is fixed in v1.3.3

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘author ID in API do not working’ is closed to new replies.