Skip to main content
PUT
/
api
/
v2
/
employees
/
{employeeId}
/
goodies
/
default-access
cURL
curl --request PUT \
  --url https://api.become1.de/api/v2/employees/{employeeId}/goodies/default-access \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "startDate": "2023-11-07T05:31:56Z",
  "endDate": "2023-11-07T05:31:56Z"
}
'
[
  {
    "id": "<string>",
    "employeeId": "<string>",
    "validFrom": "2023-11-07T05:31:56Z",
    "validTo": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

employeeId
string
required

Body

application/json
startDate
string<date-time>
required

Make sure the date is UTC+0. To have the access applied on 1st of January 2023, the input would be: 2023-01-01T00:00:00.000Z.It is important to note that this date can not be in the past or the current month.If the current date is 2023-02-12, the earliest valid date is 2023-03-01

endDate
string<date-time>

Make sure the date is UTC+0. To have the access terminated on the end of January 2023, the input would be: 2023-01-31T23:59:59.999Z

Response

200 - application/json
id
string
required
employeeId
string
required
validFrom
string<date-time>
required
validTo
string<date-time>