POST/ administration
Testing Env
https://testhr.vodoglobal.com
Testing Env
https://testhr.vodoglobal.com
POST
/api/v1/administration
Last modified:2025-03-26 12:40:51
Create New Administration
name
(text): The name of the administration.profile
(file): The profile of the administration.active
(text): The status of the administration (active or inactive).type
(text): The type of administration.company_id
(text): The ID of the company associated with the administration.activation_date
(text): The date of activation for the administration.deactivation_date
(text): The date of deactivation for the administration.employees
(text): The number of employees in the administration.administration_id
(text): The ID of the administration.administration_admin
(text): The admin of the administration.calendar_id[]
(text): An array of calendar IDs associated with the administration.The response will contain the status of the request along with any relevant data or error messages.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://testhr.vodoglobal.com/api/v1/administration' \
--header 'user_token: ' \
--header 'secure_business_key: 4765066450c0bd66325.48403130' \
--header 'uuid: 630ca2f4885f8' \
--header 'Accept: application/json' \
--form 'name="test add calendars"' \
--form 'profile=@""' \
--form 'active="yes"' \
--form 'type="subcategory"' \
--form 'company_id="4"' \
--form 'activation_date="2024-12-24"' \
--form 'deactivation_date="2024-12-31"' \
--form 'employees="3291,3289"' \
--form 'administration_id="5"' \
--form 'administration_admin="7"' \
--form 'calendar_id[]="327"' \
--form 'calendar_id[]="2"' \
--form 'calendar_id[]="328"'
Response Response Example
{
"status": true,
"message": "success",
"response": {
"name": "test add calendars",
"active": "yes",
"type": "sub",
"company_id": "4",
"activation_date": "2024-12-24",
"deactivation_date": "2024-12-31",
"administration_id": "5",
"administration_admin": "7",
"calendar_id": "327,2,328",
"business_id": 259,
"slug": "test-add-calendars",
"updated_at": "2025-03-20T14:17:07.000000Z",
"created_at": "2025-03-20T14:17:07.000000Z",
"id": 127,
"profile_url": "https://testhr.vodoglobal.com/data/employee/profile/user.png"
}
}
Request
Header Params
user_token
stringÂ
required
Example:
{{user_token}}
secure_business_key
stringÂ
required
Example:
{{secure_business_key}}
uuid
stringÂ
required
Example:
{{uuid}}
Accept
stringÂ
required
Example:
application/json
Body Params multipart/form-data
name
stringÂ
required
Example:
test add calendars
profile
fileÂ
required
active
stringÂ
required
Example:
yes
type
stringÂ
required
Example:
subcategory
company_id
stringÂ
required
Example:
4
activation_date
stringÂ
required
Example:
2024-12-24
deactivation_date
stringÂ
required
Example:
2024-12-31
employees
stringÂ
required
Example:
3291,3289
administration_id
stringÂ
required
Example:
5
administration_admin
stringÂ
required
Example:
7
calendar_id[]
array[string]
required
Example:
["327","2","328"]