• Document Up to Date
  • Updated On 4.0.0

Create Social Context

Creates a new Social Context.

Resource Information

This service uses the tomcat application on port 8080 by default.

The context for this API is /crafter-social, please prefix the API URLs with this context.

HTTP Verb
POST
URL
/api/3/system/context
Response Formats
JSON

Parameters

Name
Type
Required
Description
context
String
The ID of the Social Context
contextName
String
The name of the new Social Context

Example

Request

POST .../api/3/system/context?context=f5b143c2-f1c0-4a10-b56e-f485f00d3fe9
contextName=site1

Response

Status 200 OK

1{
2  "contextName": "site1",
3  "_id": "e41e7273-b504-4d50-9edd-3b215eff6464"
4}

Responses

Status
Location
Response Body
200

See example above.
401

{ "message" : "User must be logged in" }
403







{ "message" : "Current subject does not have
permission to execute global action ..." }
500

{ "message" : "Internal server error" }