- Tue Dec 22, 2020 8:26 am
#828766
hi
I'm trying to update Users by API with jquery Ajax
but I dont know how to post data from jquery Ajax
I read wiki but no sample exist
please give me a sample
this is my data :
{
usr_birthday: "2019-09-14"
usr_create_date: "2019-09-14 00:47:00"
usr_due_date: "2021-09-14"
usr_email: "Administrator@oautomation.ir"
usr_firstname: "fghf"
usr_lastname: "fghfgh"
usr_photo_path: "/opt/processmaker/workflow/public_html/images/user.gif"
usr_role: "PROCESSMAKER_OPERATOR"
usr_status: "ACTIVE"
usr_uid: "1082202175d7bf93c319774069666327"
usr_update_date: "2019-09-14 00:47:00"
usr_username: "Administrator"
usr_ux: "NORMAL"
}
this is error :
{
"error": {
"code": 400,
"message": "Bad Request: This user: , can not update the data."
}
}
I'm trying to update Users by API with jquery Ajax
but I dont know how to post data from jquery Ajax
I read wiki but no sample exist
please give me a sample
this is my data :
{
usr_birthday: "2019-09-14"
usr_create_date: "2019-09-14 00:47:00"
usr_due_date: "2021-09-14"
usr_email: "Administrator@oautomation.ir"
usr_firstname: "fghf"
usr_lastname: "fghfgh"
usr_photo_path: "/opt/processmaker/workflow/public_html/images/user.gif"
usr_role: "PROCESSMAKER_OPERATOR"
usr_status: "ACTIVE"
usr_uid: "1082202175d7bf93c319774069666327"
usr_update_date: "2019-09-14 00:47:00"
usr_username: "Administrator"
usr_ux: "NORMAL"
}
this is error :
{
"error": {
"code": 400,
"message": "Bad Request: This user: , can not update the data."
}
}