PartnerAccounts-partnerAccountId-attributes-attribute:DELETE
From Hostway API Documentation
DELETE /partnerAccounts/{partnerAccountId}/attributes/{attribute}
Updates attribute value.
Contents |
Request
DELETE /partnerAccounts/{partnerAccountId}/attributes/{attribute}
Parameters
- partnerAccountId - string
- The Id of the partner account.
URI Parameters
- attribute - string
Request Headers
- Authorization - HTTP Authorization header [1]
- The Authentication credentials of the client application.
- Content-Type
- application/json
Response
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 partner 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.
Examples
Sending unauthorized request
Request
DELETE /partnerAccounts/partner-account-id/attributes/test_attribute
Response
401 Unauthorized
Sending request without setting Content-Type
Request
DELETE /partnerAccounts/partner-account-id/attributes/test_attribute Authorization: Basic base64_encode(username:password)
Response
415 Unsupported Media Type
Failure updating not existing attribute
Request
DELETE /partnerAccounts/partner-account-id/attributes/not_existing_attribute Authorization: Basic base64_encode(username:password) Content-Type: application/json
Response
404 Not Found
Success scenario
Request
DELETE /partnerAccounts/partner-account-id/attributes/test_attribute Authorization: Basic base64_encode(username:password) Content-Type: application/json
Response
204 No Content
See also