Hello,
I am using version 2.9 and I am trying to create user lookup via API and found this article in user docs:
https://wiki.dreamfactory.com/DreamFactory/Tutorials/Managing_user_lookups
Based on that I should be able to do it via command like this:
PUT /api/v2/system/user/100?related=user_lookup_by_user_id
with body:
{"user_lookup_by_user_id": [{
"name": "favorite_food",
"value": "pizza",
"private": false,
"description": null}
I am getting following error:
“code”: 400,
“context”: null,
“message”: “Unknown relationship: user_lookup_by_user_id”,
Am I doing something wrong or is this a bug?
Many thanks
UPDATE!!!
I have found also this post in forum:
I have tried following request in APIdocs:
I used PATCH /system/user/{id} endpoint with following parameters:
id: 2 …user_id I want to update
body:
{“user_lookup_by_user_id”:[
RelatedLookupResponse {
“id”:1000,
“name”: “test”,
“value”: “test”,
“created_date”: “2017-10-03”,
“last_modified_date”: “2017-10-03”,
}
]
I get a response code 200 with following information:
{
“id”: 2
}
When I look at admin user interface, the lookup key does not show up. What am I doing wrong?
Thanks for your great product.
Richard