Organizations (グループ)

グループの新規作成

新規にグループを作成することが出来ます。

グループとは複数人で翻訳依頼・翻訳結果を管理出来る機能です。

詳しくはこちらから確認することが出来ます。

Resource URL

POST /api/v1/organizations

Parameters

  • name (必須)
    グループ名
  • description (任意)
    説明

Example Response

$ curl -i -H "Accept: application/json" -H "Content-type: application/json" -X POST https://biz.conyac.cc/api/v1/organizations -d '{"name": "hogehoge group", "description": "hogehogehoge"}'
HTTP/1.1 201 Created
Content-Type: application/json; charset=utf-8
Location: https://conyac.cc/api/v1/organizations/5
{
  "success": true,
  "message": "the organization is found.",
  "organization": {
    "id": 5,
    "name": "test group",
    "plan_id": 1,
    "user_id": 107,
    "default": 0,
    "description": "test decription",
    "created_at": "2014-06-10T10:32:48.830+09:00",
    "updated_at": "2014-06-10T10:32:48.830+09:00",
    "url": "https://biz.conyac.cc/api/v1/organizations/5",
    "html_url": "https://conyac.cc/b/organizations/5",
    "point": 0,
    "available_point": 0
  }
}

グループの情報取得

指定したグループの情報を取得することが出来ます。

Resource URL

GET /api/v1/organizations/:id

Example Response

$ curl -i -H "Accept: application/json" -H "Content-type: application/json" -X GET https://biz.conyac.cc/api/v1/organizations/5?access_token=8c1525a501a5b10671b148003c65b1ed5c0598da5907f0a7855dc248faac8b76 
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "success": true,
  "message": "the organization is found.",
  "organization": {
    "id": 5,
    "name": "test group",
    "plan_id": 1,
    "user_id": 107,
    "default": 0,
    "description": "test decription",
    "created_at": "2014-06-10T10:32:48.000+09:00",
    "updated_at": "2014-06-10T10:32:48.000+09:00",
    "url": "https://biz.conyac.cc/api/v1/organizations/5",
    "html_url": "https://conyac.cc/b/organizations/5",
    "point": 0,
    "available_point": 0
  }
}