curl -sS -X POST 'https://apipub.firstbasehq.com/api/v1/people/{personId}/reactivate' \
-H 'Authorization: ApiKey YOUR_API_KEY' \
-H 'Accept: application/json'import requests
url = "https://apipub.firstbasehq.com/api/v1/people/{personId}/reactivate"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://apipub.firstbasehq.com/api/v1/people/{personId}/reactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "e2bd9633-46b4-4286-85bd-3403a3f17e0f",
"role": "BASIC",
"firstName": "Jenny",
"lastName": "Smith",
"status": "INVITED",
"identityEmail": "jenny@example.com",
"email": "jenny@example.com",
"secondaryEmail": "jenny@secondary.example.com",
"phoneNumber": "555-867-5309",
"startDate": "2023-11-22",
"homeAddress": {
"countryCode": "US",
"addressLine1": 123,
"addressLine2": "Suite 103",
"administrativeArea": "NY",
"locality": "New York City",
"postalCode": 10123
},
"package": {
"id": "3a68a467-8733-4c8d-a942-16ed7ec33018",
"name": "The works",
"automaticOrder": false,
"approvalRequired": false,
"requireJustification": false,
"active": true,
"assignedTo": {
"people": "3cf416c1-1b0f-4344-9cec-ba9c9fe615c9"
},
"skuIds": "3cf416c1-1b0f-4344-9cec-ba9c9fe615c9"
},
"cpfNumber": 87523654789
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}Reactivate person
Reactivates a previously offboarded person in the caller’s organization. Restores the person for ordering and inventory assignment according to current organization settings.
curl -sS -X POST 'https://apipub.firstbasehq.com/api/v1/people/{personId}/reactivate' \
-H 'Authorization: ApiKey YOUR_API_KEY' \
-H 'Accept: application/json'import requests
url = "https://apipub.firstbasehq.com/api/v1/people/{personId}/reactivate"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://apipub.firstbasehq.com/api/v1/people/{personId}/reactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "e2bd9633-46b4-4286-85bd-3403a3f17e0f",
"role": "BASIC",
"firstName": "Jenny",
"lastName": "Smith",
"status": "INVITED",
"identityEmail": "jenny@example.com",
"email": "jenny@example.com",
"secondaryEmail": "jenny@secondary.example.com",
"phoneNumber": "555-867-5309",
"startDate": "2023-11-22",
"homeAddress": {
"countryCode": "US",
"addressLine1": 123,
"addressLine2": "Suite 103",
"administrativeArea": "NY",
"locality": "New York City",
"postalCode": 10123
},
"package": {
"id": "3a68a467-8733-4c8d-a942-16ed7ec33018",
"name": "The works",
"automaticOrder": false,
"approvalRequired": false,
"requireJustification": false,
"active": true,
"assignedTo": {
"people": "3cf416c1-1b0f-4344-9cec-ba9c9fe615c9"
},
"skuIds": "3cf416c1-1b0f-4344-9cec-ba9c9fe615c9"
},
"cpfNumber": 87523654789
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}Authorizations
Prefix the value with "ApiKey" to indicate the custom authorization type
Path Parameters
Response
OK
A person (employee) record in Firstbase
Unique identifier for this person
"e2bd9633-46b4-4286-85bd-3403a3f17e0f"
Role of this person within the organization (BASIC = standard employee, ADMIN = org admin)
BASIC, ADMIN "BASIC"
First name of the person
"Jenny"
Last name of the person
"Smith"
Current lifecycle status of the person in Firstbase (e.g. INVITED, ACTIVE, OFFBOARDING)
INVITED, ACTIVE, INACTIVE, DELETED, OFFBOARDING, CANNOT_REACTIVATE Identity email address, used for platform login and notifications
"jenny@example.com"
Primary email address, used for platform login and notifications
"jenny@example.com"
Secondary email address; null when not provided
"jenny@secondary.example.com"
Phone number from the person's home address; null when not provided
"555-867-5309"
Employment start date, used to trigger onboarding timelines
"2023-11-22"
Home address of the person, used for equipment deliveries
Show child attributes
Show child attributes
Equipment package currently assigned to this person; null when no package is assigned
Show child attributes
Show child attributes
Brazilian CPF tax number; null for non-Brazilian employees
87523654789