REST API - Publish Comments Request
api/v1/projects/{projectId}/artifacts/{artifactId}/comments/publish
Description
Publishes all unpublished comments associated with the specified artifact.
URL Structure
[Blueprint_URI]/api/v1/projects/{projectId}/artifacts/{artifactId}/comments/publish
ProjectId
: The ID of the project containing the artifact with comments that you want to publish.ArtifactId
: The ID of the artifact containing comments you want to publish.
Supported Methods
HTTP Status Codes
- 200: OK
- 201: Successfully Created
- 206: Partial Content
- 400: Bad Request
This error can occur for a variety of reasons: - 401: Unauthorized
- The Blueprint token is missing, invalid or expired.
- 403: Forbidden
- The applicable permissions are needed. For example, this error can occur when:
- An Author or Collaborate license is needed for access.
- Comment permissions are needed on the artifact.
- Edit permissions are needed on the change summary job.
- The applicable permissions are needed. For example, this error can occur when:
- 404: NotFound
- Item is not found in the project. For example, this error can occur when:
- Artifact not found.
- Artifact type not found.
- Project not found.
- ALM target not found.
- Change summary job not found.
- User does not have edit permissions for this artifact, project or ALM target.
- Item is not found in the project. For example, this error can occur when:
- 409: Conflict
- Reason for failure can be found in the response body. Additional information may also be found in the log.
- 411: Length Required
- If the Content-Length header is missing in the request.
- 413: Request Entity Too Large
- If the provided file size is larger than allowed.
- 415: Unsupported Media Type
- If the provided media type is not of MIME Multipart Content "form-data."
- 416: Request Range Not Satisfiable
- If
offset
points to a part of a collection that is not available.
- If
- 500: Internal Server Error
- 501: Not Implemented
Examples
XML Example
Request URI
https://production.blueprintcloud.com/api/v1/projects/220870/artifacts/220914/comments/publish
Response Header
{'content-length': '108', 'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', 'expires': '-1', 'server': 'Blueprint', 'pragma': 'no-cache', 'cache-control': 'no-cache', 'date': 'Wed, 27 Nov 2013 17:30:59 GMT', 'x-frame-options': 'deny', 'content-type': 'application/xml; charset=utf-8'}
Response Body
<xml version="1.0">
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Comment successfully published.</string>
JSON Example
Request URI
https://production.blueprintcloud.com/api/v1/projects/220870/artifacts/220914/comments/publish
Response Header
{'content-length': '33', 'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', 'expires': '-1', 'server': 'Blueprint', 'pragma': 'no-cache', 'cache-control': 'no-cache', 'date': 'Wed, 27 Nov 2013 17:24:08 GMT', 'x-frame-options': 'deny', 'content-type': 'application/json; charset=utf-8'}
Response Body
"Comment successfully published."