VERSION: 4.0, DEPRECATED: NO
POSTcreate
Params
Nested object(s)[]
curl --location --request POST "{{ROOT}}free-restricted/create/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{"start_date": "20230401T00:00","end_date": "20230401T00:00","type_id": "0","department_ids": [{"department_id":"234"},{"department_id":"234"}],"description": "sample"}'
[ { "object_name":"free_restricted_ids", "type":"NESTED", "is_nullable":false, "nest":[ { "object_name":"free_restricted_id", "type":"Int32", "is_nullable":False, "nest":null, "custom":null "note":"", }, { "object_name":"department_tag_id", "type":"Int32", "is_nullable":False, "nest":null, "custom":null "note":"", }], "custom":null "note": }]
POSTretrieve
curl --location --request POST "{{ROOT}}free-restricted/retrieve/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{"type_id": "0","department_id": "123456"}'
[ { "object_name":"department_name", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"free_restricted_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"start_date", "type":"DateTime", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"end_date", "type":"DateTime", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"description", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"type_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"free", "value":"0" }, { "name":"restricted", "value":"1" }] "note": }, { "object_name":"department_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }]
GETretrieve by id
Sample call: {root}/v4/free-restricted/retrieve-by-id/12345678
curl --location --request GET "{{ROOT}}free-restricted/retrieve-by-id/12345678-H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \
[ { "object_name":"free_restricted_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"start_date", "type":"DateTime", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"end_date", "type":"DateTime", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"description", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"type_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"free", "value":"0" }, { "name":"restricted", "value":"1" }] "note": }, { "object_name":"department_id", "type":"Int32", "is_nullable":false, "nest":null, "custom":null "note": }]
PUTupdate
curl --location --request PUT "{{ROOT}}free-restricted/update/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{"free_restricted_id": "123456","start_date": "20230401T00:00","end_date": "20230401T00:00","type_id": "0","department_id": "123456","description": "sample"}'
DELETEdel
Sample call: {root}/v4/free-restricted/del/12345678
curl --location --request DELETE "{{ROOT}}free-restricted/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