Update the current admin profile
Self-service update of the signed-in admin’s own profile, such as their admin UI display language (selected_locale).
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": "telma_zemlak@gutmannborer.com",
"first_name": "Beulah",
"last_name": "Schimmel",
"full_name": "Beulah Schimmel",
"selected_locale": "de",
"created_at": "2026-07-27T20:00:44.839Z",
"updated_at": "2026-07-27T20:00:44.854Z",
"avatar_url": null,
"roles": [
{
"id": "role_UkLWZg9DAJ",
"name": "admin"
}
],
"stores": [
{
"id": "store_UkLWZg9DAJ",
"name": "Spree Test Store",
"code": "spree_1"
}
]
},
"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
Secret API key for admin access
JWT token for admin user authentication
Headers
Bearer token for admin authentication
Body
application/json
Was this page helpful?
⌘I
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": "telma_zemlak@gutmannborer.com",
"first_name": "Beulah",
"last_name": "Schimmel",
"full_name": "Beulah Schimmel",
"selected_locale": "de",
"created_at": "2026-07-27T20:00:44.839Z",
"updated_at": "2026-07-27T20:00:44.854Z",
"avatar_url": null,
"roles": [
{
"id": "role_UkLWZg9DAJ",
"name": "admin"
}
],
"stores": [
{
"id": "store_UkLWZg9DAJ",
"name": "Spree Test Store",
"code": "spree_1"
}
]
},
"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
}
]
}
