Retrieve Space Information

You can use this API request to retrieve detailed information about a space.

/services/v2/space/[spaceId].json

You can use the following parameters in your retrieve space information request:

Projection: include, exclude, includeOnly
Other options: wrap, v1

🚧

NOTES:

  • You must have the View the questions list permission under the Anonymous Roles under the Advanced Editor for the space you are retrieving information from.

  • The URI/URL parameter spaceId is a placeholder for the actual identifier of the topic.

    • You should format it as a valid integer (digit characters only).
  • With the includeOnly parameter set to id and name (/services/v2/space.json?includeOnly=id,name) to the AnswerHub REST API.

  • We added this request in version 1.6.3.

Sample Request

A GET retrieve space information request for a space (spaceId: 11) sent to https://apidocs.cloud.answerhub.com using a human-readable Username/Password (answerhub/test123) would look like this:

curl 
-u answerhub:test123 
-H "Accept: application/json" 
-H "Content-type: application/json" 
-X GET "https://apidocs.cloud.answerhub.com/services/v2/space/11.json"

Sample Response

Successful Response:

  • HTTP Status 200 - OK
{
    "id": 11,
    "type": "space",
    "name": "Test Space",
    "prefix": "space11",
    "locale": "en",
    "creationDate": 1548189175000,
    "active": true,
    "parentId": 7
}
Language
Credentials
Basic
base64
:
Click Try It! to start a request and see the response here!