Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

GET /ssp/api/1/person/{id}/document

Security

PERSON_DOCUMENT_READ

Parameters

status : ALL, ACTIVE, INACTIVE, DELETED<br>
start : First result (0-based index) to return<br>return
limit : Maximum number of results to return<br>return
sort : Property name<br>name
sortDirection : Ascending/descending keyword (ASC/DESC or ASCENDING/DESCENDING)

Returns

List<Document>

Code Block
Code Block
{"success" : "true",
 "results" : "100",
 "rows" : 
    [{"id" : "cb9ae287-0b28-4a3b-aece-2c6d1d974443",
      "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",   
      "name" : "High School Transcript",
      "note" : "This is Billy's high school transcript from Oakwood High School",
      "confidentialityLevel" :
         {"id" : "c57f11e1-7ef2-4989-9ac2-7b0690563995",
          "name" : "EVERYONE"}},
     {"id" : "3a9d3bee-1acf-4af2-92b6-10bf6d6b4da0",
      "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",
      "name" : "Email",
      "note" : "Email received from Billy on 04/12/12 outlining struggles during Spring term.",
      "confidentialityLevel" :
         {"id" : "c57f11e1-7ef2-4989-9ac2-7b0690563995",
          "name" : "EVERYONE"}},
     ...
    ]
}

Get a Document 

GET /ssp/api/1/person/{id}/document/{id}

Security

PERSON_DOCUMENT_READ

Returns

Document

Code Block
{"id" : "cb9ae287-0b28-4a3b-aece-2c6d1d974443",
  "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",
  "name" : "High School Transcript",
  "note" : "This is Billy's high school transcript from Oakwood High School",
  "confidentialityLevel" :
     {"id" : "c57f11e1-7ef2-4989-9ac2-7b0690563995",
      "name" : "EVERYONE"}}

Create a Document

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

Security

PERSON_DOCUMENT_WRITE

Sample Post

Code Block
{"name" : "High School Transcript",
 "note" : "This is Billy's high school transcript from Oakwood High School",
 "confidentialityLevel" :
     {"id" : "c57f11e1-7ef2-4989-9ac2-7b0690563995",
      "name" : "EVERYONE"}}

Returns

Document

Code Block
{"id" : "cb9ae287-0b28-4a3b-aece-2c6d1d974443",
  "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",
  "name" : "High School Transcript",
  "note" : "This is Billy's high school transcript from Oakwood High School",
  "confidentialityLevel" :
     {"id" : "c57f11e1-7ef2-4989-9ac2-7b0690563995",
      "name" : "EVERYONE"}}

 

Save a Document

PUT /ssp/api/1/person/{id}/document/{id}

Security

PERSON_DOCUMENT_WRITE

Sample Post

Code Block
{"id" : "cb9ae287-0b28-4a3b-aece-2c6d1d974443",
  "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",
  "name" : "High School Transcript",
  "note" : "This is Billy's high school transcript from Oakwood High School",
  "confidentialityLevel" :
     {"id" : "c57f11e1-7ef2-4989-9ac2-7b0690563995",
      "name" : "EVERYONE"}}

Returns

Document

Code Block
{"id" : "cb9ae287-0b28-4a3b-aece-2c6d1d974443",
  "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",
  "name" : "High School Transcript",
  "note" : "This is Billy's high school transcript from Oakwood High School",
  "confidentialityLevel" :
     {"id" : "c57f11e1-7ef2-4989-9ac2-7b0690563995",
      "name" : "EVERYONE"}}

 

Delete a Document

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

Security

PERSON_DOCUMENT_DELETE

Returns

Code Block
{"success" : "true"}

...