# Update Endpoint - UpdateApproval
Updates approval metadata with the provided data from HTTPS PUT call. Metadata must be passed in as json object in HTTP body. Not all approval property values can be changed by update, some of them are immutable. In that case bad request will be returned back.
# HTTP Request
One of the following requests should be made:
PUT /odata/approvals({key})
PUT /odata/approvals/{key}
# Path parameters
| Name | Description |
|---|---|
| key | required. Id of approval that should be updated. |
# Query parameters
| Name | Description |
|---|---|
| repository | optional. Destination repository key. |
# Request headers
| Name | Description |
|---|---|
| Authorization | required. Bearer {token}. See authorization |
| Content-Type | required. application/json |
# Request body
Information
Only properties with new values need to be specified, unmodified properties are optional and can be skipped.
Information
If readonly properties are specified the response will always be a 400 Bad Request error.
# Responses
| Code | Description | Type |
|---|---|---|
200 | If update of approval was successful. | ApprovalEntity |
400 | If update contains data for properties which values are immutable or if no data for the update could be loaded from the request. | |
401 | Is access is denied. | |
404 | If no approval with the given id could be found. | |
500 | When an internal server occurs during the update of approval. |