Share via


Access Tokens - Delete

Deletes an access-token for the account with given access-token id. Authorization required is Bearer JWT Access token provided by EntraID.

DELETE {endpoint}/accounts/{accountId}/access-tokens/{accessTokenId}?api-version=2024-12-01

URI Parameters

Name In Required Type Description
accessTokenId
path True

string (uuid)

maxLength: 64
pattern: [A-Za-z0-9]+(-[A-Za-z0-9]+)+

The access-token id.

accountId
path True

string

maxLength: 64
pattern: [A-Za-z0-9]+(_[A-Za-z0-9]+)*(-[A-Za-z0-9]+)+

The account id.

endpoint
path True

string

Supported Azure Playwright Service API Endpoints (protocol and hostname, for example: https://{region}.api.playwright.microsoft.com).

api-version
query True

string

minLength: 1

The API version to use for this operation.

Request Header

Name Required Type Description
x-ms-client-request-id

string (uuid)

An opaque, globally-unique, client-generated string identifier for the request.

Responses

Name Type Description
204 No Content

There is no content to send for this request, but the headers may be useful.

Headers

x-ms-client-request-id: string

Other Status Codes

Azure.Core.Foundations.ErrorResponse

An unexpected error response.

Headers

x-ms-error-code: string

Security

OAuth2Auth

Type: oauth2
Flow: accessCode
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize
Token URL: https://login.microsoftonline.com/common/v2.0/oauth2/token

Scopes

Name Description
https://playwright.microsoft.com/.default

Examples

AccessTokens_Delete

Sample request

DELETE {endpoint}/accounts/sampleAccountId_00000000-0000-0000-0000-000000000000/access-tokens/00000000-0000-0000-0000-000000000000?api-version=2024-12-01

Sample response

Definitions

Name Description
Azure.Core.Foundations.Error

The error object.

Azure.Core.Foundations.ErrorResponse

A response containing error details.

Azure.Core.Foundations.InnerError

An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.

Azure.Core.Foundations.Error

The error object.

Name Type Description
code

string

One of a server-defined set of error codes.

details

Azure.Core.Foundations.Error[]

An array of details about specific errors that led to this reported error.

innererror

Azure.Core.Foundations.InnerError

An object containing more specific information than the current object about the error.

message

string

A human-readable representation of the error.

target

string

The target of the error.

Azure.Core.Foundations.ErrorResponse

A response containing error details.

Name Type Description
error

Azure.Core.Foundations.Error

The error object.

Azure.Core.Foundations.InnerError

An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.

Name Type Description
code

string

One of a server-defined set of error codes.

innererror

Azure.Core.Foundations.InnerError

Inner error.