Update Release
curl --request POST \
--url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#GITHUB_UPDATE_RELEASE' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"action": "GITHUB_UPDATE_RELEASE",
"parameters": {
"owner": "<string>",
"repo": "<string>",
"id": "<string>",
"tag_name": "<string>",
"target_commitish": "<string>",
"body": "<string>",
"draft": "true",
"prerelease": "true",
"discussion_category_name": "<string>",
"generate_release_notes": "true"
}
}'
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Your Paragon Project ID
Body
Owner : Specify the name of the account owner of the associated repository for this Release. (example: "abc")
Repository : Specify the name of the associated repository for this Release.
Release ID : Specify the ID of the release to update.
Name : Specify the name of the release tag to be updated. (example: "v1.0.0")
Target : Specify the target of the release. This can either be a branch name or a commit SHA. Defaults to the main branch. (example: "master")
Body : Specify a description for this release.
Draft : Specify whether the created release should be a draft (unpublished) release.
true
, false
Prerelease : Specify whether the created release should be a prerelease.
true
, false
Discussion Category Name : If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository.
Release Notes : Specify whether the created release should automatically create release notes using the provided name and body specified.
true
, false
Response
Success
Was this page helpful?
curl --request POST \
--url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#GITHUB_UPDATE_RELEASE' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"action": "GITHUB_UPDATE_RELEASE",
"parameters": {
"owner": "<string>",
"repo": "<string>",
"id": "<string>",
"tag_name": "<string>",
"target_commitish": "<string>",
"body": "<string>",
"draft": "true",
"prerelease": "true",
"discussion_category_name": "<string>",
"generate_release_notes": "true"
}
}'