Skip to content

Get the team's preview access summary

GET
/api/v1/team/preview-access
curl --request GET \
--url https://api.deploybase.eu/api/v1/api/v1/team/preview-access \
--header 'Authorization: <Authorization>'

Returns the preview level new projects of the team start at, and how many of the team’s existing projects have public previews: the projects that POST /team/preview-access/apply would switch to team-only. Projects being deleted are not counted. Works while the write routes are switched off.

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
default_preview_access

DefaultPreviewAccess is the preview level new projects of the team start at.

string
public_project_count

PublicProjectCount is how many of the team’s projects have public previews, which is what “apply to all existing projects” would change.

integer

Example

{
"data": {
"default_preview_access": "team",
"public_project_count": 3
}
}

Unauthorized

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Forbidden

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Internal Server Error

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Live b001be8d built