POST api/Zone/{zone_handle}/NsPubKey?user={user}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
zone_handle

string

Required

user

string

None.

Body Parameters

NewNsPubKey
NameDescriptionTypeAdditional information
KeyTag

string

Required

PubKey

string

Required

Request Formats

application/json, text/json

Sample:
{
  "KeyTag": "sample string 1",
  "PubKey": "sample string 2"
}

application/xml, text/xml

Sample:
<NewNsPubKey xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Zone">
  <KeyTag>sample string 1</KeyTag>
  <PubKey>sample string 2</PubKey>
</NewNsPubKey>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'NewNsPubKey'.

Response Information

Resource Description

NsPubKey
NameDescriptionTypeAdditional information
Id

integer

None.

ZoneName

string

None.

KeyTag

string

None.

PubKey

string

None.

DateInsert

date

None.

NbNs

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ZoneName": "sample string 2",
  "KeyTag": "sample string 3",
  "PubKey": "sample string 4",
  "DateInsert": "2025-10-18T04:47:09.95657+02:00",
  "NbNs": true
}

application/xml, text/xml

Sample:
<NsPubKey xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Zone">
  <DateInsert>2025-10-18T04:47:09.95657+02:00</DateInsert>
  <Id>1</Id>
  <KeyTag>sample string 3</KeyTag>
  <NbNs>true</NbNs>
  <PubKey>sample string 4</PubKey>
  <ZoneName>sample string 2</ZoneName>
</NsPubKey>