AlphaAlpha Docs

Types / Options

Operations on options

Get options for tree

GET
/types/options/{typeId}
AuthorizationBearer <token>

In: header

Path Parameters

typeId*string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/types/options/string"
[
  {
    "activeViews": [
      "string"
    ],
    "category": "string",
    "codes": [
      {
        "code": "string",
        "description": "string",
        "option": "string",
        "price": 0.1,
        "visible": true
      }
    ],
    "id": "string",
    "isNeighborOption": true,
    "name": "string",
    "neighborOption": true,
    "phase": "PLAN",
    "visible": true
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Create

POST
/types/options/{typeId}
AuthorizationBearer <token>

In: header

Path Parameters

typeId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/types/options/string" \  -H "Content-Type: application/json" \  -d '{    "activeViews": [      "string"    ],    "category": "string",    "isNeighborOption": true,    "name": "string",    "phase": "PLAN",    "visible": true  }'
{
  "activeViews": [
    "string"
  ],
  "category": "string",
  "codes": [
    {
      "code": "string",
      "description": "string",
      "option": "string",
      "price": 0.1,
      "visible": true
    }
  ],
  "id": "string",
  "isNeighborOption": true,
  "name": "string",
  "neighborOption": true,
  "phase": "PLAN",
  "visible": true
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Update

PATCH
/types/options/{typeId}/{optionId}
AuthorizationBearer <token>

In: header

Path Parameters

typeId*string
optionId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/types/options/string/string" \  -H "Content-Type: application/json" \  -d '{    "activeViews": [      "string"    ],    "category": "string",    "isNeighborOption": true,    "name": "string",    "phase": "PLAN",    "visible": true  }'
{
  "activeViews": [
    "string"
  ],
  "category": "string",
  "codes": [
    {
      "code": "string",
      "description": "string",
      "option": "string",
      "price": 0.1,
      "visible": true
    }
  ],
  "id": "string",
  "isNeighborOption": true,
  "name": "string",
  "neighborOption": true,
  "phase": "PLAN",
  "visible": true
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Delete

DELETE
/types/options/{typeId}/{optionId}
AuthorizationBearer <token>

In: header

Path Parameters

typeId*string
optionId*string

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "http://localhost:18080/api/v1/types/options/string/string"
[
  {
    "activeViews": [
      "string"
    ],
    "category": "string",
    "codes": [
      {
        "code": "string",
        "description": "string",
        "option": "string",
        "price": 0.1,
        "visible": true
      }
    ],
    "id": "string",
    "isNeighborOption": true,
    "name": "string",
    "neighborOption": true,
    "phase": "PLAN",
    "visible": true
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Move

PATCH
/types/options/{typeId}/{optionId}/move/{newIndex}
AuthorizationBearer <token>

In: header

Path Parameters

typeId*string
optionId*string
newIndex*integer
Formatint32

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/types/options/string/string/move/0"
[
  {
    "activeViews": [
      "string"
    ],
    "category": "string",
    "codes": [
      {
        "code": "string",
        "description": "string",
        "option": "string",
        "price": 0.1,
        "visible": true
      }
    ],
    "id": "string",
    "isNeighborOption": true,
    "name": "string",
    "neighborOption": true,
    "phase": "PLAN",
    "visible": true
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}