Skip to content

Assignment Comments

Assignment comments are discussions on internal planning assignments. Note that assignment comments do not currently thread.

GET /v3/assignment-comment/{assignment uuid}

Get comments for given assignment

Acl Action: ASSIGNMENTCOMMENT list

Example Response:

{
    "items": [
        {
            "id": "2",
            "uuid": "AAAA-1234",
            "user_id": "1",
            "assignment_id": "5",
            "comment": "<p>@mike this is a comment on a checked out assignment<\/p>",
            "created_at": "2017-03-07 20:50:36",
            "user": {
                "id": "1",
                "uuid": "BBBB-1234",
                "name": "mike",
                "slug": "mike",
                "email": "mike@getsnworks.com",
                "is_snworks": "1",
                "srn": "srn:tsn:ceo-core\/user:BBBB-1234",
                "gravatar": "http:\/\/www.gravatar.com\/"
            }
        }
    ]
}

POST /v3/assignment-comment/{assignment uuid}

Create a new comment for assignment. The commenting user is assumed to be the one passing the authentication key.

Acl Action: ASSIGNMENTCOMMENT create

Example Request:

{
    "comment": "<p>@mike this is a comment on a checked out assignment<\/p>"
}

Example Response:

{
    "id": "2",
    "uuid": "AAAA-1234",
    "user_id": "1",
    "assignment_id": "5",
    "comment": "<p>@mike this is a comment on a checked out assignment<\/p>",
    "created_at": "2017-03-07 20:50:36",
    "user": {
        "id": "1",
        "uuid": "BBBB-1234",
        "name": "mike",
        "slug": "mike",
        "email": "mike@getsnworks.com",
        "is_snworks": "1",
        "srn": "srn:tsn:ceo-core\/user:BBBB-1234",
        "gravatar": "http:\/\/www.gravatar.com\/"
    }
}