VERSION: 4.0, DEPRECATED: NO
POSTcreate
Params
curl --location --request POST "{{ROOT}}user-allowance/create/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{"user_id": "123456","locked": false}'
[ { "object_name":"user_allowance_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }]
POSTretrieve
curl --location --request POST "{{ROOT}}user-allowance/retrieve/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{"user_id": "123456"}'
[ { "object_name":"user_allowance_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"user_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"start_date", "type":"Date", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"end_date", "type":"Date", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"allowance_type_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"days", "value":"0" }, { "name":"hours", "value":"1" }] "note": }, { "object_name":"opening", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"remaining", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"carryover_opening", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"carryover_remaining", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"lieu", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"pending", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"locked", "type":"Boolean", "is_nullable":false, "nest":null, "custom":null "note": }]
POSTmy
curl --location --request POST "{{ROOT}}user-allowance/my/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{}'
PUTupdate
curl --location --request PUT "{{ROOT}}user-allowance/update/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{"user_allowance_id": "123456","locked": false}'
DELETEdel
Sample call: {root}/v4/user-allowance/del/12345678
curl --location --request DELETE "{{ROOT}}user-allowance/del/12345678-H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \
Standard response object returned, see API Overview for structure.
[]
INSTANTLY REDUCE TIME SPENT ON LEAVE MANAGEMENT
Start Your Free Trial