Universes Management

Create Universe

Create a new universe

POST
https://api.textreveal.com/v3/universes

Request

Request Body

  • name*string

    Name of the universe.

    Example: "Tech Asian companies"
  • type*string (enum)

    Universe visibility and access level.

    • PRIVATE: visible and manageable by the owner only.

    • SHARED: visible to the owner and company members, manageable by the owner.

    • SESAMM: visible to company members, not manageable.

    Values: "PRIVATE", "SHARED", "SESAMM"
  • owneruuid | null

    When present, only the user with this id can manage the universe.

  • companyuuid

    With which company is the universe shared

  • descriptionstring | null

    Description of the universe

    Example: "The Asian companies that are in the Tech sector"
Request
{
  "name": "Tech Asian companies",
  "type": "PRIVATE",
  "owner": "00000000-0000-0000-0000-000000000000",
  "company": "00000000-0000-0000-0000-000000000000",
  "description": "The Asian companies that are in the Tech sector"
}

Response

Response - 201

Universe successfully created

  • universe_id*uuid

    Unique identifier of the universe.

Response
{
  "universe_id": "00000000-0000-0000-0000-000000000000"
}

Error

Error - 400

Bad request

  • message*string

    Error message.

    Example: "Check the errors field for more details"
  • code*number (enum)

    Error code.

    Values: 400
  • reason*string (enum)

    Error reason.

    Values: "invalid"
  • errorsobject[]

    Possible error causes.

Response
{
  "message": "Check the errors field for more details",
  "code": 400,
  "reason": "invalid",
  "errors": [
    {
      "message": "string",
      "field": "name",
      "reason": "invalid_type"
    }
  ]
}

Error - 403

Forbidden

  • message*string

    Error message.

    Example: "You are not allowed to create SESAMM universes"
  • code*number (enum)

    Error code.

    Values: 403
  • reason*string (enum)

    Error reason.

    Values: "forbidden"
Response
{
  "message": "You are not allowed to create SESAMM universes",
  "code": 403,
  "reason": "forbidden"
}

Error - 404

Not found

  • message*string

    Error message.

    Example: "The requested universe does not exist or is not visible to your company."
  • code*number (enum)

    Error code.

    Values: 404
  • reason*string (enum)

    Error reason.

    Values: "not_found"
Response
{
  "message": "The requested universe does not exist or is not visible to your company.",
  "code": 404,
  "reason": "not_found"
}

Error - 409

Conflict

  • message*string

    Error message.

    Example: "Universe with this name already exists"
  • code*number (enum)

    Error code.

    Values: 409
  • reason*string (enum)

    Error reason.

    Values: "invalid"
Response
{
  "message": "Universe with this name already exists",
  "code": 409,
  "reason": "invalid"
}

Generic errors are not shown, see Errors for more details.