Skip to main content
POST
Create site redirect rules from CSV

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

FlowAuthorization Code
Authorization URL
https://forge.laravel.com/oauth/authorize
Token URL
https://forge.laravel.com/oauth/token
Scopes1
site:manage-redirects
Allow members to configure URL redirects

Path Parameters

organization
string
required

The organization slug

server
integer
required

The server ID

site
integer
required

The site ID

Body

multipart/form-data
file
file
required

The CSV file of redirect rules to import, with a from,to,type header row.

mode
enum<string>
required

How to apply the imported rules to the site's existing rules.

Available options:
append,
replace
Example:

"append"

Response

imported
integer
required
invalid
object[]
required
duplicates
object[]
required