Delete credentials
DELETE/credentials/:credentialsId
Deletes the credentials identified by the given credentialsId
.
Request
Path Parameters
credentialsId stringrequired
Credentials string identifier
Query Parameters
workspaceId int64
Workspace numeric identifier
checked boolean
If set credentials deletion will be blocked by running jobs that depend on them
Responses
- 204
- 400
- 403
- 409
OK - No content
Bad request
- application/json
- Schema
- Example (auto)
Schema
messagestringrequired
{
"message": "string"
}
Operation not allowed
Running jobs block the deletion of this credentials
- application/json
- Schema
- Example (auto)
Schema
credentialsIdstring
conflicts object[]
{
"credentialsId": "string",
"conflicts": [
{
"type": "string",
"id": "string",
"name": "string",
"url": "string"
}
]
}
Authorization: http
name: BearerAuthtype: httpscheme: bearerbearerFormat: jwt
- python
- curl
- java
- r
- javascript
- go
- powershell
- HTTP.CLIENT
- REQUESTS
import http.client
conn = http.client.HTTPSConnection("docs.seqera.io")
payload = ''
headers = {
'Authorization': 'Bearer <token>'
}
conn.request("DELETE", "/credentials/:credentialsId", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))