curl --request POST \
--url https://api.capitalcheckin.app/v1/collaborators \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"email": "[email protected]",
"position": "<string>",
"department": "<string>",
"phone": "<string>",
"hire_date": "2023-12-25",
"salary": 123,
"manager_id": "<string>",
"work_schedule": "<string>",
"location": "<string>",
"emergency_contact": {
"name": "<string>",
"phone": "<string>",
"relationship": "<string>"
}
}
'{
"id": "<string>",
"name": "<string>",
"email": "[email protected]",
"phone": "<string>",
"position": "<string>",
"department": "<string>",
"status": "active",
"role": "admin",
"hire_date": "2023-12-25",
"salary": 123,
"manager_id": "<string>",
"work_schedule": "<string>",
"location": "<string>",
"avatar_url": "<string>",
"emergency_contact": {
"name": "<string>",
"phone": "<string>",
"relationship": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Create a new collaborator in the company
curl --request POST \
--url https://api.capitalcheckin.app/v1/collaborators \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"email": "[email protected]",
"position": "<string>",
"department": "<string>",
"phone": "<string>",
"hire_date": "2023-12-25",
"salary": 123,
"manager_id": "<string>",
"work_schedule": "<string>",
"location": "<string>",
"emergency_contact": {
"name": "<string>",
"phone": "<string>",
"relationship": "<string>"
}
}
'{
"id": "<string>",
"name": "<string>",
"email": "[email protected]",
"phone": "<string>",
"position": "<string>",
"department": "<string>",
"status": "active",
"role": "admin",
"hire_date": "2023-12-25",
"salary": 123,
"manager_id": "<string>",
"work_schedule": "<string>",
"location": "<string>",
"avatar_url": "<string>",
"emergency_contact": {
"name": "<string>",
"phone": "<string>",
"relationship": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}OAuth2 access token for authentication
Full name of the collaborator
2Email address (must be unique)
Job position or title
Department or team
Phone number
Date when collaborator was hired
Annual salary
ID of the manager
Work schedule (full-time, part-time, etc.)
Work location
Show child attributes
Collaborator created
Unique collaborator identifier
Full name of the collaborator
Email address
Phone number
Job position or title
Department or team
Collaborator status
active, inactive, pending Collaborator role
admin, manager, employee Date when collaborator was hired
Annual salary
ID of the manager
Work schedule (full-time, part-time, etc.)
Work location
Profile picture URL
Show child attributes
Creation timestamp
Last update timestamp