update Occupation Id
Testing Env
https://testhr.vodoglobal.com
Testing Env
https://testhr.vodoglobal.com
POST
/api/v1/update_occupation_id/1006
Last modified:2025-03-26 12:40:51
Update Occupation ID
Request Body
Response
{
"type": "object",
"properties": {
"status": {
"type": "boolean"
},
"message": {
"type": "string"
},
"response": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"business_id": {
"type": "string"
},
"agent_ids": {
"type": ["array", "null"]
},
"type": {
"type": "string"
},
"active": {
"type": "integer"
},
"social_situation": {
"type": "string"
},
"user_type": {
"type": "string"
},
"primary_email": {
"type": "string"
},
"email_verified_at": {
"type": ["string", "null"]
},
"password": {
"type": ["string", "null"]
},
"remember_token": {
"type": ["string", "null"]
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"profile": {
"type": ["object", "null"]
},
"source": {
"type": "string"
},
"national_id": {
"type": "string"
},
"nationality_id": {
"type": "string"
},
"occupation_id": {
"type": "string"
},
"section_id": {
"type": "integer"
},
"job_number": {
"type": "string"
},
"company_id": {
"type": "integer"
},
"border_number": {
"type": "string"
},
"deleted_at": {
"type": ["string", "null"]
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"administration_id": {
"type": "integer"
},
"department_id": {
"type": "integer"
},
"calendar_id": {
"type": "integer"
},
"administration_admin": {
"type": "integer"
},
"trainer": {
"type": "integer"
},
"emergency_name": {
"type": "string"
},
"emergency_phone": {
"type": "string"
},
"user_id": {
"type": "integer"
},
"user_name": {
"type": "string"
},
"employer": {
"type": "string"
},
"employer_company_id": {
"type": "integer"
},
"employer_branch_id": {
"type": "integer"
},
"employer_department_id": {
"type": "integer"
},
"employer_section_id": {
"type": "integer"
},
"client_id": {
"type": ["string", "null"]
},
"color": {
"type": "string"
},
"bio": {
"type": ["object", "null"]
},
"profile_url": {
"type": "string"
}
},
"required": ["id", "name", "business_id", "type", "active", "email", "phone", "source", "occupation_id", "created_at", "updated_at", "user_id", "user_name", "employer", "employer_company_id", "employer_branch_id", "employer_department_id", "employer_section_id", "color", "profile_url"]
}
},
"required": ["status", "response"]
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://testhr.vodoglobal.com/api/v1/update_occupation_id/1006' \
--header 'secure_business_key: 4765066450c0bd66325.48403130' \
--header 'uuid: 630ca2f4885f8' \
--header 'Accept: application/json' \
--form 'occupation_id="66"'
Response Response Example
{
"status": true,
"message": "success",
"response": {
"id": 3419,
"name": "new test log",
"business_id": "259",
"agent_ids": null,
"type": "mail",
"active": 1,
"social_situation": "married",
"user_type": "sub-user",
"primary_email": "derey798050@marchub.com",
"email_verified_at": null,
"password": null,
"remember_token": null,
"email": "[\"jane.smith@example.com\",\"jane.smith@work.com\"]",
"phone": "[\"555-1234\",\"555-5678\"]",
"profile": null,
"source": "referred",
"national_id": "9876564321",
"nationality_id": "1",
"occupation_id": "66",
"section_id": 3,
"job_number": "job123",
"company_id": 4,
"border_number": "border987",
"deleted_at": null,
"created_at": "2025-03-20T09:30:58.000000Z",
"updated_at": "2025-03-20T09:59:37.000000Z",
"administration_id": 5,
"department_id": 7,
"calendar_id": 123,
"administration_admin": 6,
"trainer": 7,
"emergency_name": "John Smith",
"emergency_phone": "555-8765",
"user_id": 1006,
"user_name": "api-doc-update",
"employer": "company",
"employer_company_id": 8,
"employer_branch_id": 3,
"employer_department_id": 9,
"employer_section_id": 10,
"client_id": null,
"color": "#259874",
"bio": null,
"profile_url": "https://testhr.vodoglobal.com/data/employee/profile/user.png"
}
}
Request
Header Params
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
occupation_id
stringÂ
required
Example:
66