Calls
User
set_status
4min
this allows you to add or remove a status from an applicant parameters name type required description action string true set status clogin id integer true this is a central login id which identifies a single user between any projects within your organization group id integer true this designates which project the action should be applied towards doc array true doc should be empty status id integer true this should be either a 0 to remove the current status, or the status id which you would like to add you can find these id's by looking at the editing status window (under tools in user management) help article for editing statuses remove status example this example would remove a status from the user call curl x post "https //www regpack com/reg/api2/users/" \\ h "content type application/json" \\ h "accept application/json" \\ h "api id 15263" \\ h "api user api admin\@regpacks com" \\ h "api token cd2e514f 7gab 3cde 62fg 51abcd4e7362" \\ d '{ "action" "set status", "group id" 100909072, "clogin id" 102670540, "doc" {}, "status id" 0 }import requests import json users endpoint = https //www regpack com/reg/api2/users/ headers = { "content type" "application/json", "accept" "application/json", "api id" "15263", "api user" "api admin\@regpacks com", "api token" "cd2e514f 7gab 3cde 62fg 51abcd4e7362", } payload = { "action" "set status", "group id" 100909072, "clogin id" 102670540, "doc" {}, "status id" 0 } set status remove json = json dumps(payload) set status remove response = requests post(url=users endpoint, data=set status remove json, headers=headers, timeout=10) response { "msg" "user status updated successfully ", "msg type" "success", "users" \[ 102670540 ], "effected users" 1, "success" true, "user info" { "clogin id" "102670540", "group id" "100909072", "connected to" "102670540" }, "meta info" { "u name" "miles davis", "total forms" "2", "completed forms" "0", "total user forms" "2", "total completed user forms" "0", "total user mandatory forms" "2", "total completed user mandatory forms" "0", "total order" "0 00", "total paid" "0 00", "total balance" "0 00", "status id" "0", "status name" null, "status color" null, "application date" "dec 8th 2021 17 20", "application date raw" "2021 12 08 17 20 08", "u comments" "0", "group id" "100909072", "uid" "4085258", "clogin id" "102670540", "excluded" "0", "connected to" "102670540", "total user tags" "0", "user tag ids" null, "total non excluded children" "1", "star" "0", "admin initials" null, "admin color" null, "assigned admin id" null } }