Updates an artifact.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
devs:PutArtifact |
none |
*All Resource
|
None | None |
Request syntax
PUT /2023-07-14/artifacts/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
No |
The name of the artifact. |
demo-artifact |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
Artifact |
No |
The artifact configuration. |
|
| force |
boolean |
No |
Specifies whether to force the update. Set to |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
Artifact |
The updated artifact configuration. |
Examples
Success response
JSON format
{
"uid": "1455541096***548",
"kind": "Artifact",
"createdTime": "2021-11-19T09:34:38Z",
"updatedTime": "2021-11-19T09:34:38Z",
"name": "my-artifact",
"spec": {
"runtime": "custom.debian10",
"type": "FC代码包、工作流yaml",
"uri": "oss://cn-hangzhou/my-bucket/my.zip"
},
"labels": {
"key": "key=value"
},
"resourceVersion": 1,
"description": "test-description",
"status": {
"size": 1024,
"checksum": "2825179536350****",
"arn": "acs:devs:cn-hangzhou:123456:artifacts/my-first-artifact"
},
"generation": 1
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.