PUT
/
api
/
v1
/
users
/
event
/
{user_id}
/
{event_id}
# To use the Python SDK, install the package:
# pip install memobase

from memobase import Memobase

client = Memobase(project_url='PROJECT_URL', api_key='PROJECT_TOKEN')
uid = client.add_user()
u = client.get_user(uid)
# ... insert messages to user

events = u.event(topk=5)
eid = events[0].id

u.update_event(eid, {"event_tip": "The event is about..."})
print(u.event(topk=1))
{
  "data": {},
  "errno": 0,
  "errmsg": ""
}

Update a user event with data.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

The ID of the user

event_id
string
required

The ID of the event

Body

application/json

Event data to update

profile_delta
object[] | null

List of profile data

event_tip
string | null

Event tip

event_tags
object[] | null

List of event tags

Response

200
application/json
Successful Response
data
object | null

Response data payload

errno
enum<integer>

Error code, 0 means success

Available options:
0,
400,
401,
403,
404,
405,
409,
422,
500,
501,
502,
503,
504,
520
errmsg
string
default:

Error message, empty when success