curl --request POST \
--url https://api.example.com/api/projects/{projectId}/change-requests/{changeRequestId}/activities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "create",
"comment": "<string>",
"requestChange": false
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "publish_document",
"status": "pending",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"updatedAt": "<string>",
"description": "<string>",
"document": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"key": "<string>"
},
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"release": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": "<string>"
},
"releaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"branch": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"branchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"commit": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message": "<string>"
},
"createdBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"firstName": "<string>",
"lastName": "<string>"
},
"activities": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "create",
"createdAt": "<string>",
"updatedAt": "<string>",
"comment": "<string>",
"createdBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"firstName": "<string>",
"lastName": "<string>"
}
}
],
"snapshot": {
"approvalMode": "<string>",
"approvalGroups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "pending",
"approvals": [
"<unknown>"
],
"description": "<string>"
}
],
"approvals": [
"<unknown>"
],
"canComplete": true
},
"documentVersion": "<unknown>",
"previousDocumentVersion": "<unknown>",
"previousRelease": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": "<string>"
},
"previousReleaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Create a new activity on a change request. Activities include approval, rejection, comments, and completion actions.
curl --request POST \
--url https://api.example.com/api/projects/{projectId}/change-requests/{changeRequestId}/activities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "create",
"comment": "<string>",
"requestChange": false
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "publish_document",
"status": "pending",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"updatedAt": "<string>",
"description": "<string>",
"document": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"key": "<string>"
},
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"release": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": "<string>"
},
"releaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"branch": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"branchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"commit": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message": "<string>"
},
"createdBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"firstName": "<string>",
"lastName": "<string>"
},
"activities": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "create",
"createdAt": "<string>",
"updatedAt": "<string>",
"comment": "<string>",
"createdBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"firstName": "<string>",
"lastName": "<string>"
}
}
],
"snapshot": {
"approvalMode": "<string>",
"approvalGroups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "pending",
"approvals": [
"<unknown>"
],
"description": "<string>"
}
],
"approvals": [
"<unknown>"
],
"canComplete": true
},
"documentVersion": "<unknown>",
"previousDocumentVersion": "<unknown>",
"previousRelease": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": "<string>"
},
"previousReleaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Personal access token is obtained through your profile
Project unique identifier
Change request unique identifier
Updated change request with the new activity
Updated change request with the new activity
Change request unique identifier
Type of change request
publish_document, unpublish_document, deploy_environment, undeploy_environment, merge_branch Current status of the change request
pending, rejected, cancelled, completed Project unique identifier
Change request creation timestamp
Change request last update timestamp
Change request description
Document information
Show child attributes
Document unique identifier
Environment information
Show child attributes
Environment unique identifier
Release information
Show child attributes
Release unique identifier
Branch information
Show child attributes
Branch unique identifier
Commit information
Show child attributes
User information
Show child attributes
List of activities
Show child attributes
Change request snapshot containing approval state
Show child attributes
Document version being published
Previous document version
Release information
Show child attributes
Previous release unique identifier
Was this page helpful?