ケース・コメントの追加

post

/cases/{id}/comments

ケースにコメントを追加します。

リクエスト

サポートされているメディア・タイプ
本文()
ルート・スキーマ: schema
リクエストの例(application/json)
{
    "commentStr":"Testing Comments Post REST API"
}
トップに戻る

レスポンス

サポートされているメディア・タイプ

200レスポンス

成功
本文()
ルート・スキーマ: schema
レスポンスの例(application/json)
{
    "type":"comments",
    "levels":0,
    "links":[
        {
            "rel":"back",
            "href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c"
        },
        {
            "rel":"self",
            "href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/comments"
        }
    ],
    "comment":{
        "comment":[
            {
                "commentStr":"Testing Comments Post REST API",
                "updatedBy":"jstein",
                "updatedDate":"2015-06-08 14:43:08"
            },
            {
                "commentStr":"Creating a case link",
                "updatedBy":"wfaulk",
                "updatedDate":"2015-06-05 17:42:51"
            }
        ]
    }
}
トップに戻る

次の例に、ケースにコメントを追加する場合のレスポンス本文を示します。

  {
                        "type": "comments",
                        "levels": 0,
                        "links": [{
                        "rel": "back",
                        "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c"
                            },
                            {
                        "rel": "self",
                        "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/comments"
                         }],
                        "comment": {
                        "comment": [{
                        "commentStr": "Testing Comments Post REST API",
                        "updatedBy": "jstein",
                        "updatedDate": "2015-06-08 14:43:08"
                         },
                             {
                        "commentStr": "Creating a case link",
                        "updatedBy": "wfaulk",
                        "updatedDate": "2015-06-05 17:42:51"
                        }]
                         }
                            }

cURLの詳細は、「cURLの使用」を参照してください

トップに戻る