Redirects
Create Redirect
Create a new redirect rule. Required Fields: - from_path: Source path to redirect from - to_path: Target path to redirect to Response Codes: - 201: Redirect created successfully - 409: from_path already exists
post/redirects
Request
- Base URLhttps://inblog.ai/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"jsonapi": {
"version": "1.0"
}
}Response
Redirect created successfully
Example response
{
"jsonapi": {
"version": "1.0"
},
"data": {
"type": "redirects",
"attributes": {
"from_path": "/old-post",
"to_path": "/new-post",
"redirect_type": 307
}
}
}Changes
No recorded changes to this operation across all 4 revisions of this API.