Generate a code
Generate a code
JSON
{
"title": "new code",
"expired_at": "2029-12-31 12:45",
"flat_id": 1
}
POST /api/admin/v1/intercom/{intercom}/codes |
Parameters
int
intercom, ID of the intercom for which the code needs to be created
string
title, Code title
string
expired_at, Date until which the code will be valid
int
flat_id, Apartment for which the code will work
200 |
Successful response
JSON
|
401 |
Authorization token not sent or not valid |
422 |
Returns a JSON object with an error.
JSON
|