POST
/
api
/
v1
/
workspace
/
{id}
/
scope
curl --request POST \
  --url https://prod.oneloop.ai/api/v1/workspace/{id}/scope \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "representation": "<string>",
  "description": "<string>"
}'
{
  "scope": {
    "id": "<string>",
    "name": "<string>",
    "representation": "<string>",
    "description": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The workspace id.

Body

application/json
name
string
required
representation
string
required
description
string

Response

200
application/json
The created scope
scope
object
required