Project access conflict
A refusal to save a project’s gateway access, because it changed after you read it.
| Field | Value |
|---|---|
type |
https://mockhub.dev/problems/project-access-conflict |
| Status | 409 |
What it means
Section titled “What it means”Each save of a project’s access sends the version of the policy it was made against. Saving the policy, creating a key and revoking a key each move that version. When it has moved since you read it, nothing is saved, so a choice between public and private made against an older state never replaces a newer one, such as another admin closing the project.
Status
Section titled “Status”Always 409.
Where it comes from
Section titled “Where it comes from”In the app, only from Save access under Gateway access on a project’s Settings.
| When | detail |
|---|---|
| The policy changed since it was read | The access policy changed since it was read (version <n>, now <n>). Reload it and review the change before saving. |
The app shows the policy as it is now, with The access policy changed while you were editing it: saved by someone else, or a key was created or revoked. It is shown as it is now; make your change again.
This type carries no extension members; the two versions are in the detail.
{ "type": "https://mockhub.dev/problems/project-access-conflict", "title": "Access settings changed", "status": 409, "detail": "The access policy changed since it was read (version 4, now 5). Reload it and review the change before saving."}What to do
Section titled “What to do”Read the policy again, check what changed, then make your change again if it still applies. Do not resend the same request: the change that caused the conflict may be one you would undo.