Upload

This endpoint allows you to upload the certificate to an accommodation by providing the accommodation id.

Request

PUT/v1/accommodations/{accommodation}/certificates
curl -X PUT https://api.ntak.guru/v1/accommodations/99845d23-7ffb-4267-85ef-c8d4ac70e46a/certificates \
  -H "Authorization: Bearer {token}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"certificate": {content-of-certificate-file}}'

URL Parameters

NameDescription
accommodationThe accommodation id

Response

{
  "payload": {
    "id": "99845d23-7ffb-4267-85ef-c8d4ac70e46a",
    "slug": "rqdsw",
    "name": "Senger-Cummerata",
    "providerName": "New Provider Ltd.",
    "providerTaxNumber": "00577793-3-55",
    "postalCode": "08099-0380",
    "locality": "East Cassidyshire",
    "reportingId": "OAMP7C0P",
    "active": false,
    "hasLiveCertificate": true,
    "hasPendingCertificate": false,
    "callbackUrl": "https://example.com/callback",
    "dailyCloseUrl": "https://example.com/daily-close",
    "expireAt": "2027-07-03T16:01:36+00:00",
    "roles": [
      "Owner",
    ],
    "createdAt": "2023-06-28T07:36:13+00:00",
    "updatedAt": "2023-06-28T07:36:13+00:00",
  },
  "message": null
}