• Resolved leesouthwart

    (@leesouthwart)


    I’m trying to use the REST API to disable a redirect. It seems like I can do everything else (for example, updating the title works fine) but for some reason ‘Status’ wont update. This is the post request im sending (which according to the docs, looks correct?) I’ve also tried doing “Enabled”: false – instead of status disabled.

    {
    	"status": "disabled",
    	"match_data": {
    		"source": {
    			"flag_regex": false,
    			"flag_query": "exact",
    			"flag_case": true,
    			"flag_trailing": true
    		}
        },
        "regex": false,
        "url": "/blog/post/",
        "match_url": "/blog/post/",
        "match_type": "url",
        "title": "Updating redirect from api",
        "group_id": 1,
        "action_type": "url",
        "action_code": 301,
        "action_data": {
            "url": "/"
        }
    }

    any help would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Godley

    (@johnny5)

    The status is changed from the bulk actions. You can look at what your browser does when you change the status.

    Thread Starter leesouthwart

    (@leesouthwart)

    Thank you for pointing me in the right direction, i think i’ve got it! thanks!

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

The topic ‘Can’t update redirect status via api’ is closed to new replies.