Create company list
Request samples
{
"name":"Issue types",
"source":"Jira",
"options":[
{
"value":"10003",
"label":"Service request"
},
{
"value":"10000",
"label":"Epic"
},
{
"value":"10007",
"label":"System problem"
}
]
}
import requests
response = requests.post(
"https://journeys-api.50skills.app/v1/company/lists/",
json={
"name": "Issue types",
"source": "Jira",
"options": [
{
"value":"10003",
"label":"Service request"
},
{
"value":"10000",
"label":"Epic"
},
{
"value":"10007",
"label":"System problem"
}
],
}
)
print(response.json())
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
}
{
"name":[
"This field is required."
]
}
Last updated