Skip to content

Restore an archived employee

POST
/api/public/v1/employees/restore
curl --request POST \
--url https://example.com/api/public/v1/employees/restore \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "Id": "example", "Email": "example" }'

Takes an employee back out of the archive, addressed by corporate email or by id — the way back when somebody returns. It restores the record, not access: a person who closed their card has to be invited again and has to grant again, which remains theirs alone to do.

Addresses one employee record by either handle. Give exactly one: the corporate email the record was created with, or the id a previous call returned.

object
Id
string
nullable
Email
string
nullable
Examplegenerated
{
"Id": "example",
"Email": "example"
}

OK

Media typeapplication/json

What restoring did — the way back out of the archive, so a person who returns can be invited again. Idempotent, like archiving: restoring an active record succeeds and reports that nothing changed.

object
Id
string
Email
string
Restored

True when this call restored the record; false when it was not archived.

boolean
Status
string
Allowed values: NotActivated Invited Activated Revoked
Example
{
"Status": "NotActivated"
}

Bad Request

Media typeapplication/json

The Integration API’s error shape — RFC 7807 application/problem+json. The Portal API answers in its own { Error, Details } envelope because one client parses one shape; an external integrator expects the standard instead.

object
type
string
nullable
title
required
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Unauthorized

Media typeapplication/json

The Integration API’s error shape — RFC 7807 application/problem+json. The Portal API answers in its own { Error, Details } envelope because one client parses one shape; an external integrator expects the standard instead.

object
type
string
nullable
title
required
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

Media typeapplication/json

The Integration API’s error shape — RFC 7807 application/problem+json. The Portal API answers in its own { Error, Details } envelope because one client parses one shape; an external integrator expects the standard instead.

object
type
string
nullable
title
required
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}