Calls
Status
create
8min
this call creates a status the arguments that would be included in the doc are described below basic parameters name type required description action string true create group id integer true this designates which project the action should be applied towards doc array false see doc parameters below doc parameters name type required description status name string true the name of the status color string true the color as a hex value, as in #800000 is excluded numeric true whether or not the status should mark the user as excluded 0 is active and 1 is excluding examples create a new active status this is an example which would create a new status call curl x post "https //www regpack com/reg/api2/statuses/" \\ 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" "create", "group id" 100909072, "doc" { "status name" "cancellation risk", "color" "#800000", "is excluded" 0 } }import requests import json status endpoint = https //www regpack com/reg/api2/statuses/ 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" "create", "group id" 100909072, "doc" { "status name" "cancellation risk", "color" "#800000", "is excluded" 0 } } create active status json = json dumps(payload) create active status response = requests post(url=users endpoint, data=create active status json, headers=headers, timeout=10) response { "msg" "status created successfully ", "msg type" "info", "status id" 76867, "success" true } create a new excluding status this is an example which would create a new status call curl x post "https //www regpack com/reg/api2/statuses/" \\ 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" "create", "group id" 100909072, "doc" { "status name" "cancelled", "color" "#800000", "is excluded" 1 } }import requests import json status endpoint = https //www regpack com/reg/api2/statuses/ 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" "create", "group id" 100909072, "doc" { "status name" "cancelled", "color" "#800000", "is excluded" 1 } } create excluding status json = json dumps(payload) create excluding status response = requests post(url=users endpoint, data=create excluding status json, headers=headers, timeout=10) response { "msg" "status created successfully ", "msg type" "info", "status id" 76868, "success" true }