{ "opencollection": "1.0.0", "info": { "name": "Admin Account / Address Staff API", "version": "v3" }, "items": [ { "info": { "name": "Staff", "type": "folder" }, "items": [ { "info": { "name": "List staff", "type": "http" }, "http": { "method": "GET", "url": "http://{defaultHost}/api/v3/admin/admin_users", "headers": [ { "name": "x-spree-api-key", "value": "" }, { "name": "Authorization", "value": "" } ], "auth": { "type": "apikey", "key": "x-spree-api-key", "value": "{{x-spree-api-key}}", "placement": "header" } }, "docs": "Returns admin users with at least one role assignment on the current store.\n\n**Required scope:** `read_settings` (for API-key authentication)." }, { "info": { "name": "Show a staff member", "type": "http" }, "http": { "method": "GET", "url": "http://{defaultHost}/api/v3/admin/admin_users/:id", "headers": [ { "name": "x-spree-api-key", "value": "" }, { "name": "Authorization", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "apikey", "key": "x-spree-api-key", "value": "{{x-spree-api-key}}", "placement": "header" } }, "docs": "**Required scope:** `read_settings` (for API-key authentication)." }, { "info": { "name": "Update a staff member", "type": "http" }, "http": { "method": "PATCH", "url": "http://{defaultHost}/api/v3/admin/admin_users/:id", "headers": [ { "name": "x-spree-api-key", "value": "" }, { "name": "Authorization", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "x-spree-api-key", "value": "{{x-spree-api-key}}", "placement": "header" } }, "docs": "Updates name fields and reassigns roles for the current store. `role_ids` is a complete replacement — roles not in the array are removed for this store.\n\n**Required scope:** `write_settings` (for API-key authentication)." }, { "info": { "name": "Remove a staff member from this store", "type": "http" }, "http": { "method": "DELETE", "url": "http://{defaultHost}/api/v3/admin/admin_users/:id", "headers": [ { "name": "x-spree-api-key", "value": "" }, { "name": "Authorization", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "apikey", "key": "x-spree-api-key", "value": "{{x-spree-api-key}}", "placement": "header" } }, "docs": "Removes the user's role assignments on the current store. The account is preserved — the user keeps access to any other stores.\n\n**Required scope:** `write_settings` (for API-key authentication)." }, { "info": { "name": "List invitations", "type": "http" }, "http": { "method": "GET", "url": "http://{defaultHost}/api/v3/admin/invitations", "headers": [ { "name": "x-spree-api-key", "value": "" }, { "name": "Authorization", "value": "" } ], "auth": { "type": "apikey", "key": "x-spree-api-key", "value": "{{x-spree-api-key}}", "placement": "header" } }, "docs": "Returns invitations for the current store, including pending and accepted.\n\n**Required scope:** `read_settings` (for API-key authentication)." }, { "info": { "name": "Create an invitation", "type": "http" }, "http": { "method": "POST", "url": "http://{defaultHost}/api/v3/admin/invitations", "headers": [ { "name": "x-spree-api-key", "value": "" }, { "name": "Authorization", "value": "" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "x-spree-api-key", "value": "{{x-spree-api-key}}", "placement": "header" } }, "docs": "Invites a teammate by email. The invitation is scoped to the current store and carries the chosen role; on accept, a `RoleUser` is created via the invitation's `after_accept` callback.\n\n**Required scope:** `write_settings` (for API-key authentication)." }, { "info": { "name": "Revoke an invitation", "type": "http" }, "http": { "method": "DELETE", "url": "http://{defaultHost}/api/v3/admin/invitations/:id", "headers": [ { "name": "x-spree-api-key", "value": "" }, { "name": "Authorization", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "apikey", "key": "x-spree-api-key", "value": "{{x-spree-api-key}}", "placement": "header" } }, "docs": "**Required scope:** `write_settings` (for API-key authentication)." }, { "info": { "name": "Resend an invitation", "type": "http" }, "http": { "method": "PATCH", "url": "http://{defaultHost}/api/v3/admin/invitations/:id/resend", "headers": [ { "name": "x-spree-api-key", "value": "" }, { "name": "Authorization", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "apikey", "key": "x-spree-api-key", "value": "{{x-spree-api-key}}", "placement": "header" } }, "docs": "Issues a fresh token and dispatches the invitation email again.\n\n**Required scope:** `write_settings` (for API-key authentication)." }, { "info": { "name": "List roles", "type": "http" }, "http": { "method": "GET", "url": "http://{defaultHost}/api/v3/admin/roles", "headers": [ { "name": "x-spree-api-key", "value": "" }, { "name": "Authorization", "value": "" } ], "auth": { "type": "apikey", "key": "x-spree-api-key", "value": "{{x-spree-api-key}}", "placement": "header" } }, "docs": "Returns the roles available for staff role pickers. Roles are global, not per-store.\n\n**Required scope:** `read_settings` (for API-key authentication)." } ] } ], "bundled": true }