VERSION: 4.0, DEPRECATED: NO
POSTcreate
Params
curl --location --request POST "{{ROOT}}work/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","allowance_type_id": "0"}'
[ { "object_name":"work_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }]
POSTretrieve
curl --location --request POST "{{ROOT}}work/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":"work_id", "type":"Int32", "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":"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":"monday", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"tuesday", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"wednesday", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"thursday", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"friday", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"saturday", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"sunday", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }]
PUTupdate
curl --location --request PUT "{{ROOT}}work/update/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{"work_id": "123456","user_id": "123456","allowance_type_id": "0"}'
DELETEdel
Sample call: {root}/v4/work/del/12345678
curl --location --request DELETE "{{ROOT}}work/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