Update company list
Request samples
{
"name":"Issue types - updated",
"source":"Jira",
"options":[
{
"value":"10003",
"label":"Service request new"
},
{
"value":"10000",
"label":"Epic new"
},
{
"value":"10007",
"label":"System problem new"
}
]
}
import requests
response = requests.patch(
"https://journeys-api.50skills.app/v1/company/lists/{short_id}/",
json={
"name": "Issue types - updated",
"source": "Jira",
"options": [
{
"value":"10003",
"label":"Service request new"
},
{
"value":"10000",
"label":"Epic n ew"
},
{
"value":"10007",
"label":"System problem new"
}
],
}
)
print(response.json())
Response samples
{
"id":"AOse1MyX",
"shortId":"AOse1MyX",
"name":"Issue types - updated",
"source":"Jira",
"options":[
{
"shortId":"mrzWmkKj",
"value":"10003",
"label":"Service request new",
"order":0
},
{
"shortId":"MzKmA3K8",
"value":"10000",
"label":"Epic new",
"order":1
},
{
"shortId":"wMyvRayZ",
"value":"10007",
"label":"System problem new",
"order":2
}
],
"numOptions":3
}
Last updated