1 curl -X POST https://withpersona.com/api/v1/cases/case-id/set-status \ 2 -H "Authorization: <apiKey>" \ 3 -H "Content-Type: application/json"
1 { 2 "data": { 3 "type": "case", 4 "id": "case_3maVhdLzdGftRZCvxfqazVL1", 5 "attributes": { 6 "status": "Approved", 7 "name": "WATC-16", 8 "resolution": {}, 9 "created-at": "2021-06-30T20:37:18.678Z", 10 "updated-at": "2021-08-26T18:24:19.695Z", 11 "assigned-at": {}, 12 "resolved-at": {}, 13 "creator-id": "wfl_yKynZZiuPz1R5qm9JFyBnnLB", 14 "creator-type": "workflow", 15 "assignee-id": "foo@bar.com", 16 "resolver-id": {}, 17 "resolver-type": {}, 18 "updater-id": {}, 19 "updater-type": {}, 20 "tags": [] 21 }, 22 "relationships": { 23 "case-template": { 24 "data": { 25 "type": "case-template", 26 "id": "ctmpl_6HheND7s14a2o7fg33iHqhg7" 27 } 28 }, 29 "case-comments": { 30 "data": [] 31 }, 32 "accounts": { 33 "data": [] 34 }, 35 "inquiries": { 36 "data": [ 37 { 38 "type": "inquiry", 39 "id": "inq_29Yd6kF6xWVFgemm5WTxhxvf" 40 } 41 ] 42 }, 43 "reports": { 44 "data": [ 45 { 46 "type": "report/watchlist", 47 "id": "rep_PN3xspEwWCWWRp1eGpedaSNj" 48 } 49 ] 50 } 51 } 52 } 53 }
