Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

POST /ssp/api/1/person/{id}/programStatus

Sample Post

Code Block
{"programStatusId" : "acf7d721-196f-4353-9508-fe86c61e3c1d",
 "effectiveDate" : 1332216000000,
 "expirationDate" : null,
 "programStatusChangeReasonId" : null}

Returns

PersonProgramStatus

Code Block
{"id" : "6201b18d-9d1d-48d3-82d4-092e52ad676b",
 "createdBy" : 
    {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
     "firstName" : "John",
     "lastName" : "Doe"},
 "createdDate" : 1332216000000,
 "modifiedBy" : 
    {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
     "firstName" : "John",
     "lastName" : "Doe"},
 "modifiedDate" : 1332216000000,
 "objectStatus" : "ACTIVE",
 "programStatusId" : "acf7d721-196f-4353-9508-fe86c61e3c1d",
 "effectiveDate" : 1332216000000,
 "expirationDate" : null,
 "programStatusChangeReasonId" : null}

 

Save a Program Status

PUT /ssp/api/1/person/{id}/programStatus/{id}Note

Any existing person program status record that is not expired should be expired (expirationDate = current datetime) when a new person program status is created.

Sample Post

Code Block
{"id" : "6201b18d-9d1d-48d3-82d4-092e52ad676b",
 "createdBy" : 
    {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
     "firstName" : "John",
     "lastName" : "Doe"},
 "createdDate" : 1332216000000,
 "modifiedBy" : 
    {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
     "firstName" : "John",
     "lastName" : "Doe"},
 "modifiedDate" : 1332216000000,
 "objectStatus" : "ACTIVE",
 "programStatusId" : "acf7d721-196f-4353-9508-fe86c61e3c1d",
 "effectiveDate" : 1332216000000,
 "expirationDate" : null,
 "programStatusChangeReasonId" : null}

...

DELETE /ssp/api/1/person/{id}/programStatus/{id}

Note

Set expirationDate equivalent to the current date.

Returns

Code Block
{"success" : "true"}

...