Create topic

Method

POST

URL

https://typetalk.in/api/v1/topics

Scope

topic.write

Form parameters

Name Type Description
name String Topic name (max 64 characters)
spaceKey String Organization key
addAccountIds[0], addAccountIds[1] …
(Optional) Number Account ID (organization member only)
addGroupIds[0], addGroupIds[1] …
(Optional) Number Group ID

Response Example

{
  "topic": {
    "id": 223,
    "name": "Test topic",
    "description": "",
    "suggestion": "Test topic",
    "isDirectMessage": false,
    "lastPostedAt": null,
    "createdAt": "2016-12-21T10:12:14Z",
    "updatedAt": "2016-12-21T10:12:14Z"
  },
  "mySpace": {
    "space": {
      "key": "abcdefghij",
      "name": "Joe Tech Inc.",
      "enabled": true,
      "imageUrl": "http://nulabapps.local:18080/nulab-account-web/spaces/abcdefghij/photo/large"
    },
    "myRole": "ADMIN",
    "isPaymentAdmin": true,
    "myPlan": {
      "plan": {
        "key": "typetalk.free",
        "name": "Free Plan",
        "limitNumberOfUsers": 10,
        "limitTotalAttachmentSize": 1073741824
      },
      "enabled": true,
      "trial": null,
      "numberOfUsers": 7,
      "totalAttachmentSize": 0,
      "createdAt": "2016-01-10T02:32:29Z",
      "updatedAt": "2016-01-20T02:32:29Z"
    }
  },
  "teams": [],
  "groups": [
    {
      "group": {
        "id": 1100,
        "key": "groupkey01",
        "name": "Joe Tech Inc. All",
        "suggestion": "Joe Tech Inc. All",
        "imageUrl": "http://nulabapps.local:18080/nulab-account-web/spaces/abcdefghij/groups/groupkey01/photo/medium",
        "createdAt": "2014-06-10T02:32:29Z",
        "updatedAt": "2014-06-10T02:32:29Z"
      },
      "memberCount": 4
    }
  ],
  "accounts": [
    {
      "id": 106,
      "name": "chelseab",
      "fullName": "ChelseaB",
      "suggestion": "ChelseaB",
      "imageUrl": "http://typetalk.local:8484/accounts/106/profile_image.png?t=1404095549000",
      "isBot": false,
      "createdAt": "2014-06-30T02:32:29Z",
      "updatedAt": "2014-06-30T02:32:29Z"
    }
  ],
  "invitingAccounts": [],
  "invites": [],
  "accountsForApi": [],
  "integrations": [],
  "remainingInvitations": null
}

All responses are text formatted as JSON, and include ETag. If you call an API with If-None-Match header, the server returns a 304 status code when the data is not changed. The date and time format is ISO 8601 and timezone is UTC (eg. 2014-01-09T06:20:08Z).