Delete a Library Version in a Project
delete
/ic/api/integration/v1/projects/{projectId}/libraries/{id}
Deletes the library with the specified ID in a project. The ID consists of the code and the version separated by the | (vertical line) character. When using cURL, substitute the %7C code for the vertical line.
Request
Path Parameters
-
id(required): string
Library identifier. The id must be added to the request in the following form: code%7Cversion. For example: JSLIB%7C01.00.0000. The %7C is the encoded | (vertical line).
-
projectId(required): string
Project identifier
Query Parameters
-
integrationInstance(required): string
This is the name of the service instance. You can get this value from the About page where it is specified in the Service instance field.
There's no request body for this operation.
Back to TopResponse
200 Response
Successful operation
404 Response
Library not found
423 Response
Deletion not allowed
500 Response
Server error
Examples
The following example shows how to delete a JavaScript library in a project by submitting a DELETE request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.
Example: Delete library JSLIB in the project TEST_PROJECT
The id is in the form: code%7Cversion. The %7C is the encoded | (vertical line).
curl -X DELETE -H 'Authorization: Bearer access_token' -H "Accept:application/json" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/libraries/JSLIB%7C01.00.0000?integrationInstance=service-instance