Create a task on a pull request
Creates a new pull request task.
Returns the newly created pull request task.
Tasks can optionally be created in relation to a comment specified by the comment’s ID which will cause the task to appear below the comment on a pull request when viewed in Bitbucket.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The id of the pull request.
This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example: {repository UUID}.
This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example: {workspace UUID}.
Request Body required
Section titled “ Request Body required ”The contents of the task
A pullrequest task create
object
Task raw content
object
The task contents
object
object
The text as it was typed by a user.
The type of markup language the raw content is to be interpreted in.
The user’s content rendered as HTML.
object
Links related to an Account.
object
A link to a resource related to this object.
object
object
The comment’s anchor line in the old version of the file. If the comment is a multi-line comment, this is the ending line number in the old version of the file.
The comment’s anchor line in the new version of the file. If the comment is a multi-line comment, this is the ending line number in the new version of the file.
The starting line number in the old version of the file, if the comment is a multi-line comment. This is null otherwise.
The starting line number in the new version of the file, if the comment is a multi-line comment. This is null otherwise.
The path of the file this comment is anchored to.
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
Responses
Section titled “ Responses ”The newly created task.
object
object
The text as it was typed by a user.
The type of markup language the raw content is to be interpreted in.
The user’s content rendered as HTML.
object
Links related to an Account.
object
A link to a resource related to this object.
object
The ISO8601 timestamp for when the task was resolved.
object
Links related to an Account.
object
A link to a resource related to this object.
object
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
object
object
The text as it was typed by a user.
The type of markup language the raw content is to be interpreted in.
The user’s content rendered as HTML.
object
Links related to an Account.
object
A link to a resource related to this object.
object
object
The comment’s anchor line in the old version of the file. If the comment is a multi-line comment, this is the ending line number in the old version of the file.
The comment’s anchor line in the new version of the file. If the comment is a multi-line comment, this is the ending line number in the new version of the file.
The starting line number in the old version of the file, if the comment is a multi-line comment. This is null otherwise.
The starting line number in the new version of the file, if the comment is a multi-line comment. This is null otherwise.
The path of the file this comment is anchored to.
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
Example
{ "state": "RESOLVED", "content": { "markup": "markdown" }, "comment": { "content": { "markup": "markdown" } }}Headers
Section titled “ Headers ”The URL of the new task
There is a missing required field in the request or the task content is blank.
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}If the authenticated user does not have access to the pull request.
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}If the pull request does not exist.
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}