These considerations apply to using the REST API with an object that is open for write:
- If you try to write to the object:
- If the namespace supports versioning, HCP creates a new version of the object.
- If the namespace does not support versioning, HCP returns an HTTP 409 (Conflict) error code and does not perform the operation.
- If you try to retrieve, check the existence of, or copy the object:
- If the namespace supports versioning:
- If the request does not specify a version ID and the object has one or more old versions, HCP performs the requested operation against the most recent version that is not open for write. However, if that version is a delete marker, HCP returns an HTTP 404 (Not Found) error code and does not perform the operation.
- If the request does not specify a version ID and the object doesn’t have any old versions, HCP returns an HTTP 404 (Not Found) error code and does not perform the requested operation.
- If the namespace does not support versioning, HCP returns an HTTP 404 (Not Found) error code and does not perform the operation.
- If the namespace supports versioning:
- If you try to delete the object, HCP returns an HTTP 404 (Not Found) error code and does not delete the object.
Note: Depending on the timing, the delete request may result in a busy error. In that case, wait one or two seconds and then try the request again.