Review location and access changes before adding a membership

POST/v1/resource-locations/{resourceType}/{resourceId}/preview

Organization-scoped PostgreSQL control plane. Requires resources:write plus resource and destination authorization. No execution or credential grant. Inaccessible resources return 404; stale previews return 409; unavailable storage returns 503.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
resourceTypepathstringYes
resourceIdpathstringYes
Query parameters
None.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
containerTypeproject | resource_packageYes
containerIdstringYes
accessreference | viewYesReference leaves access unchanged. View requires sharing authority and review. Packages require view.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Authorized Locations result. Only visible rows are returned; continue nextCursor even after an empty page.application/json
FieldTypeRequiredDescription
targetobjectYes
target.containerTypeproject | resource_packageYes
target.containerIdstringYes
target.accessreference | viewYesReference leaves access unchanged. View requires sharing authority and review. Packages require view.
target.namestringYesHuman-readable name.
revisionstringYes
confirmationstringYes
sourceobjectYes
source.resourceTypestringYes
source.resourceIdstringYes
source.namestringYesHuman-readable name.
source.kindstringYes
noticestringYes
requiresConfirmationbooleanYes
400Invalid input (400), authentication (401), denied action (403), unavailable resource (404), stale review or managed resource (409), internal failure (500), or PostgreSQL unavailable (503). No inaccessible resource identity is disclosed.application/json
FieldTypeRequiredDescription
errorstringYes
codestringNo
messagestringYesMessage text.
401Invalid input (400), authentication (401), denied action (403), unavailable resource (404), stale review or managed resource (409), internal failure (500), or PostgreSQL unavailable (503). No inaccessible resource identity is disclosed.application/json
FieldTypeRequiredDescription
errorstringYes
codestringNo
messagestringYesMessage text.
403Invalid input (400), authentication (401), denied action (403), unavailable resource (404), stale review or managed resource (409), internal failure (500), or PostgreSQL unavailable (503). No inaccessible resource identity is disclosed.application/json
FieldTypeRequiredDescription
errorstringYes
codestringNo
messagestringYesMessage text.
404Invalid input (400), authentication (401), denied action (403), unavailable resource (404), stale review or managed resource (409), internal failure (500), or PostgreSQL unavailable (503). No inaccessible resource identity is disclosed.application/json
FieldTypeRequiredDescription
errorstringYes
codestringNo
messagestringYesMessage text.
409Invalid input (400), authentication (401), denied action (403), unavailable resource (404), stale review or managed resource (409), internal failure (500), or PostgreSQL unavailable (503). No inaccessible resource identity is disclosed.application/json
FieldTypeRequiredDescription
errorstringYes
codestringNo
messagestringYesMessage text.
500Invalid input (400), authentication (401), denied action (403), unavailable resource (404), stale review or managed resource (409), internal failure (500), or PostgreSQL unavailable (503). No inaccessible resource identity is disclosed.application/json
FieldTypeRequiredDescription
errorstringYes
codestringNo
messagestringYesMessage text.
503Invalid input (400), authentication (401), denied action (403), unavailable resource (404), stale review or managed resource (409), internal failure (500), or PostgreSQL unavailable (503). No inaccessible resource identity is disclosed.application/json
FieldTypeRequiredDescription
errorstringYes
codestringNo
messagestringYesMessage text.
Review location and access changes before adding a membership
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow