Api Tokens - Remove

Delete an API token.

DELETE https://{subdomain}.{baseDomain}/api/apiTokens/{tokenId}?api-version=2022-07-31

URI Parameters

Name In Required Type Description
baseDomain
path True

string

The base domain for all Azure IoT Central service requests.

subdomain
path True

string

The application subdomain.

tokenId
path True

string

Unique ID for the API token.

api-version
query True

string

The version of the API being called.

Responses

Name Type Description
204 No Content

Success

Other Status Codes

Error

An error response received from the IoT Central Service.

Headers

x-ms-error-code: string

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Delete API token

Sample request

DELETE https://appsubdomain.azureiotcentral.com/api/apiTokens/testtoken?api-version=2022-07-31

Sample response

Definitions

Name Description
Error

The response error definition.

ErrorDetails

The detail information of the error.

Error

The response error definition.

Name Type Description
error

ErrorDetails

Error details for current request.

ErrorDetails

The detail information of the error.

Name Type Description
code

string

Error code.

message

string

Error message details.

requestId

string

Correlation Id for current request.

time

string

The time that error request failed.