Skip to main content
PATCH
/
api
/
v3
/
admin
/
me
Spree Admin SDK
import { createAdminClient } from '@spree/admin-sdk'

const client = createAdminClient({
  baseUrl: 'https://your-store.com',
  secretKey: 'sk_xxx',
})

// Set the signed-in admin's own UI display language.
const me = await client.me.update({
  selected_locale: 'de',
})
spree api patch /me -d '{"selected_locale":"de"}'
{
  "user": {
    "id": "admin_UkLWZg9DAJ",
    "email": "sherwood@kemmer.co.uk",
    "first_name": "Craig",
    "last_name": "Dicki",
    "full_name": "Craig Dicki",
    "selected_locale": "de",
    "created_at": "2026-07-07T19:23:13.856Z",
    "updated_at": "2026-07-07T19:23:13.875Z",
    "avatar_url": null,
    "roles": [
      {
        "id": "role_UkLWZg9DAJ",
        "name": "admin"
      }
    ]
  },
  "permissions": [
    {
      "allow": true,
      "actions": [
        "manage"
      ],
      "subjects": [
        "all"
      ],
      "has_conditions": false
    },
    {
      "allow": false,
      "actions": [
        "cancel"
      ],
      "subjects": [
        "Spree::Order"
      ],
      "has_conditions": false
    },
    {
      "allow": true,
      "actions": [
        "cancel"
      ],
      "subjects": [
        "Spree::Order"
      ],
      "has_conditions": true
    },
    {
      "allow": false,
      "actions": [
        "destroy"
      ],
      "subjects": [
        "Spree::Order"
      ],
      "has_conditions": false
    },
    {
      "allow": true,
      "actions": [
        "destroy"
      ],
      "subjects": [
        "Spree::Order"
      ],
      "has_conditions": true
    },
    {
      "allow": false,
      "actions": [
        "edit",
        "update"
      ],
      "subjects": [
        "Spree::RefundReason"
      ],
      "has_conditions": true
    },
    {
      "allow": false,
      "actions": [
        "edit",
        "update"
      ],
      "subjects": [
        "Spree::ReimbursementType"
      ],
      "has_conditions": true
    },
    {
      "allow": false,
      "actions": [
        "update",
        "destroy"
      ],
      "subjects": [
        "Spree::Role"
      ],
      "has_conditions": true
    }
  ]
}

Authorizations

x-spree-api-key
string
header
required

Secret API key for admin access

Authorization
string
header
required

JWT token for admin user authentication

Headers

x-spree-api-key
string
required
Authorization
string
required

Bearer token for admin authentication

Body

application/json
selected_locale
string
Example:

"de"

first_name
string
Example:

"Ada"

last_name
string
Example:

"Lovelace"

Response

200 - application/json

profile updated

Current admin user profile and serialized permissions

user
object
required
permissions
object[]
required