Homepage Redirect for Confluence
Space shortcuts
Space Tools
Homepage Redirect for Confluence BVREDIRECT
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Homepage redirect provides a REST API to create, read, update and delete redirects.

The ENDPOINT is /rest/homepageredirect/1.0/

redirect

The endpoint to manage redirects.

Resource url:  /rest/homepageredirect/1.0/redirect

Methods: GET PUT POST DELETE


Parameters 

ParameterTypeRequiredDescription
idLong(tick)The  id of the redirect. 

Response

Returns the redirect setting:

{
	"id" : 42,
	"contentId" : 65611,
	"group" : "confluence-users",
	"isAnonymous" : false
}

JSON Attributes in Request Body 

ParameterTypeRequiredDescription
idLong(tick)The id of the redirect. 
contentIdLong(tick)The id of the page or blog. Automatically detects pages Space Homepages.
groupString
The group name or empty to update the redirect for anonymous users.

Request Body:

{
	"id" : 42,
	"contentId" : 65611,
	"group" : "confluence-users"
}

Response

Returns the redirect setting:

{
	"id" : 42,
	"contentId" : 65611,
	"group" : "confluence-users",
	"isAnonymous" : false
}

JSON Attributes in Request Body  

ParameterTypeRequiredDescription
contentIdLong(tick)The id of the page or blog. Automatically detects pages Space Homepages.
groupString
The group name or empty to create a redirect for anonymous users.

Request Body:

{
	"contentId" : 65611,
	"group" : "confluence-users"
}

Response

Returns the redirect setting:

{
	"id" : 43,
	"contentId" : 65611,
	"group" : "confluence-users",
	"isAnonymous" : false
}

Parameters 

ParameterTypeRequiredDescription
idLong(tick)The  id of the redirect. 

Response

Returns Status 200 when deleted successfully.

redirects

The endpoint to get all redirects.

Resource url:  /rest/homepageredirect/1.0/redirects

Methods: GET


Parameters 

No parameters.

Response

Response
[
	{
		"id": 42,
		"contentId": 65611,
		"anonymous": true
	},
	{
		"id": 43,
		"group": "confluence-users",
		"contentId": 65611,
		"anonymous": false
	}
]





  • No labels
Homepage Redirect for Confluence BVREDIRECT