Import JSON, how to trigger “Import to Group” question during import
-
Hello I’m importing 200 redirects via JSON and I want to import them to a specific group that already exists. It does not appear that I can import via CSV as they automatically go into the first group. When I try the current JSON file I have, it puts them in a new group with title “Group”. I put a Group section in the JSON file and set the values to null while leaving group.name empty. Then I tried leaving out the group section altogether with no luck.
I saw it once before while testing before this but couldn’t figure out how to replicate this.
When you go to import, you Add File, then click Upload. That one time it asked me what Group to import the redirects into and I was able to select existing groups. I cannot reproduce that behavior again so I’m unable to do this.
I’ve read this blog article but it does not mention how to assign redirects to an existing group or what an example configuration looks like.
https://redirection.me/developer/json-export/
Any advice would be appreciated.
Example JSON file:{
"redirects": [
{
"url": "/blog/know-what-you-dont-know",
"match_url": "/blog/know-what-you-dont-know",
"match_data": {
"source": {
"flag_query": "pass",
"flag_case": true,
"flag_trailing": true,
"flag_regex": false
}
},
"action_code": 301,
"action_type": "url",
"action_data": {
"url": "/blog/"
},
"match_type": "url",
"title": "",
"hits": 0,
"regex": false,
"group_id": null,
"position": 0,
"last_access": "March 26, 2024",
"enabled": false
},
{
"url": "/blog/csv-column-discretization-with-java",
"match_url": "/blog/csv-column-discretization-with-java",
"match_data": {
"source": {
"flag_query": "pass",
"flag_case": true,
"flag_trailing": true,
"flag_regex": false
}
},
"action_code": 301,
"action_type": "url",
"action_data": {
"url": "/blog/"
},
"match_type": "url",
"title": "",
"hits": 0,
"regex": false,
"group_id": null,
"position": 0,
"last_access": "March 26, 2024",
"enabled": false
}
]
}
- You must be logged in to reply to this topic.