Skip to content

Update a channel release​

PATCH
/channels/{channel-id}/releases/{release-id}

Updates the state SHA of a step within a channel's release.

Parameters​

Path Parameters

id*

Release ID

Type
string
Required

Request Body​

application/json
JSON
{
  
"stateSha": "new_sha_value"
}

Responses​

Release updated successfully

application/json
JSON
{
  
"channel_id": "string",
  
"channel_rev": 0,
  
"channel_type": "string",
  
"comments": "string",
  
"components": [
  
  
{
  
  
  
"component_name": "string",
  
  
  
"device_id": "string",
  
  
  
"id": "string",
  
  
  
"locked_at": "string",
  
  
  
"objects": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"order": 0,
  
  
  
"pv_device_id": "string",
  
  
  
"pvr_data": {
  
  
  
  
"json-get-url": "string",
  
  
  
  
"json-key": "string",
  
  
  
  
"objects-endpoint": "string",
  
  
  
  
"post-url": "string",
  
  
  
  
"pvr-spec": "string"
  
  
  
},
  
  
  
"required_labels": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"rev": 0,
  
  
  
"selection_labels": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"source_url": "string",
  
  
  
"state_raw": "string",
  
  
  
"step": {
  
  
  
  
"commit-msg": "string",
  
  
  
  
"committer": "string",
  
  
  
  
"device": "string",
  
  
  
  
"garbage": true,
  
  
  
  
"id": "string",
  
  
  
  
"mark_public_processed": true,
  
  
  
  
"meta": {
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
},
  
  
  
  
"owner": "string",
  
  
  
  
"progress": {
  
  
  
  
  
"data": "string",
  
  
  
  
  
"downloads": {
  
  
  
  
  
  
"objects": [
  
  
  
  
  
  
  
{
  
  
  
  
  
  
  
  
"current_time": 0,
  
  
  
  
  
  
  
  
"object_id": "string",
  
  
  
  
  
  
  
  
"object_name": "string",
  
  
  
  
  
  
  
  
"start_time": 0,
  
  
  
  
  
  
  
  
"total_downloaded": 0,
  
  
  
  
  
  
  
  
"total_size": 0
  
  
  
  
  
  
  
}
  
  
  
  
  
  
],
  
  
  
  
  
  
"total": {
  
  
  
  
  
  
  
"current_time": 0,
  
  
  
  
  
  
  
"object_id": "string",
  
  
  
  
  
  
  
"object_name": "string",
  
  
  
  
  
  
  
"start_time": 0,
  
  
  
  
  
  
  
"total_downloaded": 0,
  
  
  
  
  
  
  
"total_size": 0
  
  
  
  
  
  
}
  
  
  
  
  
},
  
  
  
  
  
"log": "string",
  
  
  
  
  
"progress": 0,
  
  
  
  
  
"status": "string",
  
  
  
  
  
"status-msg": "string"
  
  
  
  
},
  
  
  
  
"progress-log": [
  
  
  
  
  
{
  
  
  
  
  
  
"downloaded": 0,
  
  
  
  
  
  
"progress": 0,
  
  
  
  
  
  
"retries": 0,
  
  
  
  
  
  
"source": "string",
  
  
  
  
  
  
"status": "string",
  
  
  
  
  
  
"status-msg": "string",
  
  
  
  
  
  
"time": "string",
  
  
  
  
  
  
"total-size": 0
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"progress-time": "string",
  
  
  
  
"rev": 0,
  
  
  
  
"state": {
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
},
  
  
  
  
"state-sha": "string",
  
  
  
  
"step-time": "string",
  
  
  
  
"time-created": "string",
  
  
  
  
"time-modified": "string",
  
  
  
  
"trail-id": "string"
  
  
  
}
  
  
}
  
],
  
"created_at": "string",
  
"data": {
  
  
"#spec": "string",
  
  
"components": [
  
  
  
{
  
  
  
  
"name": "string",
  
  
  
  
"order": 0,
  
  
  
  
"required_labels": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"selection_labels": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"state_sha": "string"
  
  
  
}
  
  
],
  
  
"group_by_selector": [
  
  
  
"string"
  
  
],
  
  
"required_labels": [
  
  
  
"string"
  
  
],
  
  
"selection_labels": [
  
  
  
"string"
  
  
],
  
  
"state_sha": "string"
  
},
  
"deleted_at": "string",
  
"deployments_count": 0,
  
"duration": 0,
  
"environment_id": "string",
  
"group_by_selector": [
  
  
"string"
  
],
  
"id": "string",
  
"message": "string",
  
"meta": {
  
  
"additionalProperties": "string"
  
},
  
"method": "string",
  
"owner": "string",
  
"owner_id": "string",
  
"owner_name": "string",
  
"plans": [
  
  
{
  
  
  
"created_at": "string",
  
  
  
"deleted_at": "string",
  
  
  
"error_threshold": 0,
  
  
  
"id": "string",
  
  
  
"message": "string",
  
  
  
"number": 0,
  
  
  
"number_of_devices": 0,
  
  
  
"prn": "string",
  
  
  
"release_id": "string",
  
  
  
"selection_labels": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"state": "string",
  
  
  
"until": "string",
  
  
  
"updated_at": "string"
  
  
}
  
],
  
"prn": "string",
  
"required_labels": [
  
  
"string"
  
],
  
"schedule_offset_duration": "string",
  
"schedule_time": "string",
  
"selection_labels": [
  
  
"string"
  
],
  
"sha256sum": "string",
  
"state": "string",
  
"step": {
  
  
"commit-msg": "string",
  
  
"committer": "string",
  
  
"device": "string",
  
  
"garbage": true,
  
  
"id": "string",
  
  
"mark_public_processed": true,
  
  
"meta": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"owner": "string",
  
  
"progress": {
  
  
  
"data": "string",
  
  
  
"downloads": {
  
  
  
  
"objects": [
  
  
  
  
  
{
  
  
  
  
  
  
"current_time": 0,
  
  
  
  
  
  
"object_id": "string",
  
  
  
  
  
  
"object_name": "string",
  
  
  
  
  
  
"start_time": 0,
  
  
  
  
  
  
"total_downloaded": 0,
  
  
  
  
  
  
"total_size": 0
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"total": {
  
  
  
  
  
"current_time": 0,
  
  
  
  
  
"object_id": "string",
  
  
  
  
  
"object_name": "string",
  
  
  
  
  
"start_time": 0,
  
  
  
  
  
"total_downloaded": 0,
  
  
  
  
  
"total_size": 0
  
  
  
  
}
  
  
  
},
  
  
  
"log": "string",
  
  
  
"progress": 0,
  
  
  
"status": "string",
  
  
  
"status-msg": "string"
  
  
},
  
  
"progress-log": [
  
  
  
{
  
  
  
  
"downloaded": 0,
  
  
  
  
"progress": 0,
  
  
  
  
"retries": 0,
  
  
  
  
"source": "string",
  
  
  
  
"status": "string",
  
  
  
  
"status-msg": "string",
  
  
  
  
"time": "string",
  
  
  
  
"total-size": 0
  
  
  
}
  
  
],
  
  
"progress-time": "string",
  
  
"rev": 0,
  
  
"state": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"state-sha": "string",
  
  
"step-time": "string",
  
  
"time-created": "string",
  
  
"time-modified": "string",
  
  
"trail-id": "string"
  
},
  
"strategy": "string",
  
"tags": [
  
  
"string"
  
],
  
"type": "string",
  
"updated_at": "string"
}

Playground​

Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI