POST api/Admin/Tenant/ApiKeys

Request Information

URI Parameters

None.

Body Parameters

TenantApiKeyPostDTO
NameDescriptionTypeAdditional information
Name

string

None.

ExpireInMonths

integer

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "ExpireInMonths": 2,
  "IsActive": true
}

application/xml, text/xml

Sample:
<TenantApiKeyPostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Admin">
  <ExpireInMonths>2</ExpireInMonths>
  <IsActive>true</IsActive>
  <Name>sample string 1</Name>
</TenantApiKeyPostDTO>

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 'TenantApiKeyPostDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.