Update GSP cert

Description

To update a gsp certificate, prepare the desired changes as a json string. Only gspCert, gspKey and tags can be updated.This function is only available to administrators.

Request

POST /v1/gsp-certs/:domain
{
  gspCert:string,
  gspKey: string,
  tags?: {
    [key: string]: string
  }
}

Response

Successful response contains the following JSON formated body:

{
  domain: string,
  gspCert: string,
  tags: {
    [key: string]: string
  },
  created: string
}

Response Status codes:

  • 200 on success

  • 404 if cert does not exist

  • 403 if not administrator

Request headers

This request must have the following headers:

  • Authorization: bearer <ApiKey>
  • Content-Type: application/json

Example

Request

curl -XPOST "https://api.cloud.nabto.com/v1/gsp-certs/:domain" \
  -H "Authorization: Bearer <ApiKey>" \
  -H "Content-Type: application/json" \
  -d '{ gspCert: "<gspCert>", gspKey: "<gspKey>", tags: {"foo": "bar" }}'

Response

{
   domain: "mydomain.example.net",
  gspCert: "<gspCert>",
  tags: {
    "foo": "bar" 
  },
  created: "2022-10-18T10:17:24.299Z"
}