/v0/accounts/:name/freeze (DELETE)
DELETE
/v0/accounts/:name/freeze
const url = 'http://localhost:3000/v0/accounts/:name/freeze';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:3000/v0/accounts/:name/freeze \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” name
required
Characters must be [A-Za-z0-9-.] The first and last characters must be [A-Za-z0-9-.]
string
Example
example_manCharacters must be [A-Za-z0-9-.] The first and last characters must be [A-Za-z0-9-.]
Responses
Section titled “ Responses ”No Content
Forbidden
Media type application/json
You can not do this action.
object
error
required
You can’t do this action.
string
Example
{ "error": "NO_PERMISSION"}Not Found
Media type application/json
Account not found
object
error
required
Account not found.
string
Example
{ "error": "ACCOUNT_NOT_FOUND"}Internal Server Error
Media type application/json
object
error
required
Internal server error.
string
Example
{ "error": "INTERNAL_ERROR"}