Delete key-value store record
DELETE/v2/key-value-stores/:storeId/records/:recordKey
Removes a record specified by a key from the key-value store.
Request
Path Parameters
Key-value store ID or username~store-name.
WkzbQMuFYuamGv3YFKey of the record.
Example:someKeyStatus 204
No content
Status 400
Bad request - invalid input parameters or request body.
{
"error": {
"type": "invalid-input",
"message": "Invalid input: The request body contains invalid data."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 401
Unauthorized - the authentication token is missing or not valid.
The request doesn't include an API token.
{
"error": {
"type": "token-not-provided",
"message": "Authentication token was not provided"
}
}
The API token isn't valid, or its user no longer exists.
{
"error": {
"type": "user-or-token-not-found",
"message": "User was not found or authentication token is not valid"
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 403
Forbidden - insufficient permissions to perform this action.
{
"error": {
"type": "insufficient-permissions",
"message": "You do not have permission to perform this action."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 404
Not found - the requested resource does not exist.
{
"error": {
"type": "record-not-found",
"message": "The requested resource was not found."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 405
Method not allowed.
{
"error": {
"type": "method-not-allowed",
"message": "This API end-point can only be accessed using the following HTTP methods: OPTIONS,GET"
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 429
Too many requests - rate limit exceeded.
{
"error": {
"type": "rate-limit-exceeded",
"message": "You have exceeded the rate limit. Please try again later."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)