API Reference

Create a new select list

Description

Creates a select list using the provided information and returns the select list meta.

POST /api/v1/selectlist

🚧

Required OAuth Scopes:

No OAuth scopes are required to use this endpoint.

Parameters

ParameterInTypeRequiredDescription
bodybodySelectListDtofalseThe representation of the select list to create

Body parameter example

{
  "description": "string",
  "name": "string",
  "valueType": "string",
  "values": [
    {}
  ]
}

Code Samples

curl -X POST https://h.app.wdesk.com/s/wdata/prep/api/v1/selectlist  \ 
-H 'Content-Type: application/json' \ 
-H 'Accept: application/json' \ 
-H 'Authorization: Bearer {access-token}'
http POST https://h.app.wdesk.com/s/wdata/prep/api/v1/selectlist  \ 
Content-Type:application/json \ 
Accept:application/json \ 
Authorization:"Bearer {access-token}"
wget --method=POST "https://h.app.wdesk.com/s/wdata/prep/api/v1/selectlist" \
 --output-document -  \ 
 --header 'Content-Type: application/json' \ 
 --header 'Accept: application/json' \ 
 --header 'Authorization: Bearer {access-token}'
import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {access-token}'
}

r = requests.post('https://h.app.wdesk.com/s/wdata/prep/api/v1/selectlist', headers = headers)

print(r.json())

Returns

201 - Created

Returns a JSON object with a body property, which contains a SelectListDto object for the created select list.

Example Responses


{
  "body": {
    "created": "string",
    "description": "string",
    "id": "string",
    "name": "string",
    "type": "string",
    "updated": "string",
    "userId": "string",
    "valueType": "string",
    "values": [
      {}
    ],
    "version": "integer"
  },
  "code": "integer"
}