Skip to content

Access must be public or private

What the access_mode_invalid error from the Perafly API means and what to do about it.

On this page
Code
access_mode_invalid
HTTP status
400

What it means

The sharing or custom domain change can't be made as asked.

What to do

Check the value the error names. Changing access or domains needs a person's full sign-in; agent and read-only profiles can't.

Read more: Domains and sharing

Example response

This is the shape of the answer. title and detail are in English, or in Turkish with Accept-Language: tr; detail appears when there's more to say.

{
  "type": "https://perafly.com/docs/errors/access_mode_invalid",
  "title": "Access must be public or private",
  "status": 400,
  "code": "access_mode_invalid",
  "instance": "/v1/…",
  "requestId": "req_…"
}

All error codes