deleteAuthProfile
Important
The Buy with Prime API is offered as a preview and might change as we receive feedback and iterate on the interfaces. We are sharing this early documentation to help you learn about the Buy with Prime API as we write and iterate on the content.
Overview
Delete a previously created Auth Profile.
Response
Return type DeleteAuthProfileResponse
Arguments
Argument | Description |
---|---|
authProfileId (String required) | The unique identifier of the AuthProfile to delete. The size should be greater than or equal to 1 and less than or equal to 50. |
Examples
Delete Auth Profile
Request
mutation {
deleteAuthProfile(
authProfileId: "example-auth-profile-id"
) {
authProfileId
}
}
Response
{
"data": {
"deleteAuthProfile": {
"authProfileId": "example-auth-profile-id"
}
}
}
Delete Auth Profile With Invalid Auth Profile Id
Request
mutation {
deleteAuthProfile(
authProfileId: "invalid-auth-profile-id"
) {
authProfileId
}
}
Response
{
"errors": [
{
"message": "You do not have sufficient access to perform this action.",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"deleteAuthProfile"
],
"extensions": {
"classification": {
"type": "AccessDeniedError",
"errorType": "AccessDeniedException",
"errorCode": 403
}
}
}
],
"data": null
}
Updated 5 days ago