Skip to main content
POST
/
v1
/
views
Create a new view!
curl --request POST \
  --url https://platform.thena.ai/v1/views \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My View",
  "description": "My View Description",
  "teamId": "T00M677SAK",
  "viewsTypeId": "3ENSBTAJ10QG1HAFYYNHADB58PKM5",
  "isShared": true,
  "configuration": {}
}
'
{
  "status": true,
  "message": "Success",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": {
    "id": "<string>",
    "teamId": "<string>",
    "viewId": 123,
    "name": "<string>",
    "description": "<string>",
    "configuration": {},
    "viewsTypeId": "<string>",
    "viewsType": "<string>",
    "owner": "<string>",
    "ownerId": "<string>",
    "isShared": true,
    "isPersonal": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Enter the bearer token

Body

application/json
name
string
required

The name of the view

Example:

"My View"

description
string
required

The description of the view

Example:

"My View Description"

teamId
string
required

The team id of the view

Example:

"T00M677SAK"

viewsTypeId
string
required

The views type id of the view

Example:

"3ENSBTAJ10QG1HAFYYNHADB58PKM5"

isShared
boolean
required

The shared flag of the view

Example:

true

configuration
object
required

The configuration of the view

Response

Operation successful

status
boolean
default:true
required

The status of the response

message
string
default:Success
required

The message of the response

timestamp
string<date-time>
default:2024-01-01T00:00:00.000Z
required

The timestamp of the response

data
object
required

The response for create/update/delete view operations