Accounts-accountId-attributes-attribute:DELETE
From Hostway API Documentation
				
								
				(Difference between revisions)
				
																
				
				
								
				 (Created page with "= DELETE /accounts/''{accountId}''/attributes/''{attribute}'' = Updates attribute value. __TOC__ == Request == <code>DELETE /accounts/''{accountId}''/attributes/''{attribute}'...")  | 
		Mike.robski  (Talk | contribs)  m (1 revision: Release 109)  | 
		
Latest revision as of 12:12, 24 July 2015
[edit] DELETE /accounts/{accountId}/attributes/{attribute}
Updates attribute value.
Contents | 
[edit] Request
DELETE /accounts/{accountId}/attributes/{attribute}
[edit] Parameters
- accountId - string
 - The Id of the Hostway account.
 
[edit] URI Parameters
- attribute - string
 
[edit] Request Headers
- Authorization - HTTP Authorization header [1]
 - The Authentication credentials of the client application.
 
- Content-Type
 - application/json
 
[edit] Response
[edit] Status Code
- 204 No Content
 - Success.
 
- 401 Unauthorized
 - The supplied credentials are invalid or do not provide permissions for this operation.
 
- 403 Forbidden
 - Forbidden access to a user not authorized for such access.
 
- 404 Not Found
 - The account Id or attribute were not found.
 
- 415 Unsupported Media Type
 - The Content-Type header was not specified or the specified type is not supported. Use application/json.
 
[edit] Examples
[edit] Sending unauthorized request
Request
DELETE /accounts/account-id/attributes/test_attribute
Response
401 Unauthorized
[edit] Sending request without setting Content-Type
Request
DELETE /accounts/account-id/attributes/test_attribute Authorization: Basic base64_encode(username:password)
Response
415 Unsupported Media Type
[edit] Failure updating not existing attribute
Request
DELETE /accounts/account-id/attributes/not_existing_attribute Authorization: Basic base64_encode(username:password) Content-Type: application/json
Response
404 Not Found
[edit] Success scenario
Request
DELETE /accounts/account-id/attributes/test_attribute Authorization: Basic base64_encode(username:password) Content-Type: application/json
Response
204 No Content
[edit] See also