Members
Invite a member
Members
- GETGet all members
- POSTInvite a member
- GETRead a member by id
- PUTUpdate a member
- DELDelete a member
- GETRead a member by Microsoft user id
- GETRead a member by email
- GETRead a member by custom_id
- PUTUpdate approvers for a member
- PUTUpdate a member's allowance
- POSTAdd a member's schedule
- PUTUpdate a member's schedule
Departments
Leave types
Public holidays
Members
Invite a member
Invite a member
POST
/
members
curl --request POST \
--url https://api.absentify.com/api/v1/members \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"email": "jsmith@example.com",
"department_ids": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"employment_start_date": "2023-11-07T05:31:56Z",
"public_holiday_id": "<string>",
"annual_allowance_current_year": 123,
"annual_allowance_next_year": 123,
"birthday": "2023-11-07T05:31:56Z",
"custom_id": "<string>",
"defaultAllowances": [
{
"id": "<string>",
"current_year": 123,
"next_year": 123,
"default": true,
"disabled": true
}
]
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
Authorizations
Body
application/json
Response
200
application/json
Successful response
The response is of type string
.
Was this page helpful?
curl --request POST \
--url https://api.absentify.com/api/v1/members \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"email": "jsmith@example.com",
"department_ids": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"employment_start_date": "2023-11-07T05:31:56Z",
"public_holiday_id": "<string>",
"annual_allowance_current_year": 123,
"annual_allowance_next_year": 123,
"birthday": "2023-11-07T05:31:56Z",
"custom_id": "<string>",
"defaultAllowances": [
{
"id": "<string>",
"current_year": 123,
"next_year": 123,
"default": true,
"disabled": true
}
]
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"