⌘
K
GrokAI
About
Ask Grok
Demo
Swagger-UI
GrokAI API
Authentication
User
Quota
Collections
Documents
Conversations
Messages
Docs powered by
Archbee
GrokAI API
User
Update user
PATCH
Try it
Update properties of currently signed in user.
Authentication
X-API-Key
apiKey
Body Parameters
body
UserUpdate
*
displayName
string
photoUrl
string
Responses
200
User
id
string
displayName
string
photoUrl
string
email
string
default
Default error response
ErrorResponse
code
integer
*
message
string
*
status
string
*
data
object
Curl
JS
Ruby
Python
1
curl
--location
--request
PATCH
'https://api.askgrok.ai/user'
\
2
--header
'Accept: application/json'
\
3
--header
'Content-Type: application/json'
\
4
--data
'{}'
curl --location --request PATCH 'https://api.askgrok.ai/user' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{}'
Responses
200
default
1
{
2
"id"
:
"a1b2c3d4e5"
,
3
"displayName"
:
"Grok User"
,
4
"photoUrl"
:
"https://api.dicebear.com/6.x/adventurer/svg"
,
5
"email"
:
"
[email protected]
"
6
}
{ "id": "a1b2c3d4e5", "displayName": "Grok User", "photoUrl": "https://api.dicebear.com/6.x/adventurer/svg", "email": "user@grok.ai" }
PREVIOUS
Get user
NEXT
Get user profile
Docs powered by
Archbee
Docs powered by
Archbee