Skip to main content
POST
/
v2
/
workspaces
/
{workspace_id}
/
observations
Create Observations
curl --request POST \
  --url http://localhost:8000/v2/workspaces/{workspace_id}/observations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "observations": [
    {
      "content": "<string>",
      "observer_id": "<string>",
      "observed_id": "<string>",
      "session_id": "<string>"
    }
  ]
}
'
[
  {
    "id": "<string>",
    "content": "<string>",
    "observer_id": "<string>",
    "observed_id": "<string>",
    "session_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
string
required

ID of the workspace

Body

application/json

Batch of observations to create

observations
ObservationCreate · object[]
required
Required array length: 1 - 100 elements

Response

Successful Response

id
string
required
content
string
required
observer_id
string
required

The peer who made the observation

observed_id
string
required

The peer being observed

session_id
string
required
created_at
string<date-time>
required