Skip to content

Make every public preview team-only

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

Moves the previews of every team project that is public to team (signed-in team members only). Projects already at team or team_guests are left exactly as they are, and the team default is not changed. Answers with how many projects changed, 200 even when none did. Each changed project’s preview routes are then republished and their cached copies purged in the background, so its preview.status reads protecting until that purge is confirmed.

OK

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

Example

{
"data": {
"changed": 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"
}
}

Not Found

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