Answer: Upsert is a POST that creates or replaces the grant a principal holds on the resource, while delete names the principal in the request body and returns 204 No Content. An upsert or delete that would leave the owner without an admin returns FailedPrecondition (HTTP 400). Status: Confirmed Entry: tool/cursor/admin-and-enterprise/upsert-delete-origin-grants Revision: 2 Digest: sha256:3e06c1ba3d79c2b2 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:09:28Z Last changed: 2026-11-18T12:29:27Z (error HTTP status: — → 400) Last verified: 2026-11-20T12:35:14Z Next check: 2026-11-21T12:35:14Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of upsert method | POST | [1] | 2026-11-20 delete response | 204 No Content | [1] | 2026-11-20 error condition | FailedPrecondition | [1] | 2026-11-20 error HTTP status | 400 | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/api/origin/grants-api.md". https://cursor.com/docs/api/origin/grants-api.md Role: primary. Accessed: 2026-11-20T12:35:14Z Quote: "Upsert is a `POST` that creates or replaces the grant a principal holds on the resource." (Supports: upsert method) Quote: "Delete names the principal in the request body and returns `204 No Content`." (Supports: delete response) Quote: "An upsert or delete that would leave the owner without one returns `FailedPrecondition` (HTTP 400)." (Supports: error condition) Quote: "returns `FailedPrecondition` (HTTP 400)" (Supports: error HTTP status) Snapshot SHA-256: a5289017a315fafcb002d6140f1d5555c6e3957c1aebb786945437b18b745e8e (captured 2026-11-17T12:44:00Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-17T12:44:02Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:35:14Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:35:14Z Last attempt: 2026-11-20T12:35:14Z Notes and limitations: Extracted automatically from a single official source (section "Upserts and deletes"). Related: https://latestn.com/tool/cursor/admin-and-enterprise/where-to-inject-tenancy-header Which Cursor endpoints and clients need the tenancy restriction header? https://latestn.com/tool/cursor/admin-and-enterprise/windows-group-policy How do I configure Cursor policies on Windows using Group Policy? https://latestn.com/tool/cursor/agents-and-automation/agent-concurrency-config How do I configure concurrency for Cursor agents in the Agent SDK? https://latestn.com/tool/cursor/admin-and-enterprise/team-admin-cross-team-bots Can a Cursor team Admin manage a bot published by another team? https://latestn.com/tool/cursor/admin-and-enterprise/team-spending-controls How do I set spending controls for my Cursor team? https://latestn.com/tool/cursor/admin-and-enterprise/tenancy-restriction-header How do I restrict which Cursor organizations and teams can be used on my network? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:29:27Z | changed | error HTTP status: — → 400 | [1] 2026-11-18T12:29:27Z | changed | error condition: — → FailedPrecondition | [1] 2026-11-18T12:29:27Z | changed | delete response: — → 204 No Content | [1] 2026-11-18T12:29:27Z | changed | upsert method: — → POST | [1] 2026-11-18T12:29:27Z | changed | Error HTTP status: HTTP 400 → — | [1] 2026-11-18T12:29:27Z | changed | Error for missing admin: FailedPrecondition → — | [1] 2026-11-18T12:29:27Z | changed | Delete response: 204 No Content → — | [1] 2026-11-18T12:29:27Z | changed | Upsert method: POST → — | [1] 2026-11-13T03:09:28Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/admin-and-enterprise/upsert-delete-origin-grants/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/admin-and-enterprise/upsert-delete-origin-grants POST: https://latestn.com/dispute/tool/cursor/admin-and-enterprise/upsert-delete-origin-grants with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/admin-and-enterprise/upsert-delete-origin-grants?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I upsert or delete a Cursor Origin grant for a repository or namespace? Revision 2, last verified 2026-11-20T12:35:14Z. https://latestn.com/tool/cursor/admin-and-enterprise/upsert-delete-origin-grants (accessed 2026-11-21T10:02:43Z). @misc{LatestN_tool_cursor_admin_and_enterprise_upsert_delete_origin_grants_r2, title = {How do I upsert or delete a Cursor Origin grant for a repository or namespace?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/admin-and-enterprise/upsert-delete-origin-grants}}, note = {Revision 2; digest sha256:3e06c1ba3d79c2b2; last verified 2026-11-20T12:35:14Z; accessed 2026-11-21T10:02:43Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/admin-and-enterprise/upsert-delete-origin-grants