Create company list
Create a new company list
Authorizations
Body
idstringRead-onlyRequired
short_idstringRead-onlyRequired
namestring · max: 255Required
sourcestring | nullableOptional
num_optionsstringRead-onlyRequired
Responses
201Success
application/json
400Error
application/json
401
Unauthorized
post
import requests
response = requests.post(
"https://journeys-api.50skills.app/v1/company/lists/",
json={
"name": "List two",
"options": [
{
"label": "Option one",
"value": "1",
},
{
"label": "Option two",
"value": "2",
},
],
}
)
print(response.json())
{
"id": "rbKVWezO",
"shortId": "rbKVWezO",
"name": "List two",
"source": null,
"options": [
{
"shortId": "mrzWkVzj",
"value": "1",
"label": "Option one",
"order": 0
},
{
"shortId": "mrzWkVzj",
"value": "2",
"label": "Option two",
"order": 1
}
],
"numOptions": 2
}
Request samples
{
"name":"Issue types",
"source":"Jira",
"options":[
{
"value":"10003",
"label":"Service request"
},
{
"value":"10000",
"label":"Epic"
},
{
"value":"10007",
"label":"System problem"
}
]
}
Response samples
{
"id":"AOse1MyX",
"shortId":"AOse1MyX",
"name":"Issue types",
"source":"Jira",
"options":[
{
"shortId":"mrzWmkKj",
"value":"10003",
"label":"Service request",
"order":0
},
{
"shortId":"MzKmA3K8",
"value":"10000",
"label":"Epic",
"order":1
},
{
"shortId":"wMyvRayZ",
"value":"10007",
"label":"System problem",
"order":2
}
],
"numOptions":3
}
Last updated