This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:sapi:get_item_info [2022/04/20 17:57] – vikki | dev:sapi:get_item_info [2022/04/20 18:08] (current) – vikki | ||
---|---|---|---|
Line 8: | Line 8: | ||
**Description: | **Description: | ||
- | **INPUT (via GET or POST)** | + | ---- |
+ | |||
+ | ===== INPUT (via GET or POST) ===== | ||
Mandatory parameters are: **sid, path**\\ | Mandatory parameters are: **sid, path**\\ | ||
Optional parameters are: **fields, ofmt** | Optional parameters are: **fields, ofmt** | ||
- | ---- | ||
==== sid ==== | ==== sid ==== | ||
Session id of the login user. [mandatory] | Session id of the login user. [mandatory] | ||
- | |||
- | ---- | ||
==== path ==== | ==== path ==== | ||
Line 29: | Line 28: | ||
* < | * < | ||
- | ---- | ||
==== fields ==== | ==== fields ==== | ||
Line 50: | Line 48: | ||
* **lock_owner** is the lock owner for a lock placed on the item. Value is in the form of and " | * **lock_owner** is the lock owner for a lock placed on the item. Value is in the form of and " | ||
* **ucar** is the JSON object the represents the UCAR settings associated with this item. Currently only applicable to folders in Company Share and Company HomePage. For folders elsewhere and regular files, the value returned is empty. An example of such a JSON object is documented in an example below, as the value of the property " | * **ucar** is the JSON object the represents the UCAR settings associated with this item. Currently only applicable to folders in Company Share and Company HomePage. For folders elsewhere and regular files, the value returned is empty. An example of such a JSON object is documented in an example below, as the value of the property " | ||
- | |||
- | ---- | ||
==== ofmt ==== | ==== ofmt ==== | ||
Line 64: | Line 60: | ||
---- | ---- | ||
- | ==== Legacy " | + | ===== Legacy " |
Successful return: | Successful return: | ||
Line 83: | Line 79: | ||
---- | ---- | ||
+ | |||
+ | ===== JSON OUTPUT (content-type: | ||
+ | |||
+ | Successful return: | ||
+ | |||
+ | JSON output object: | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | Most of field values will be represented simply as " | ||
+ | For field value of " | ||
+ | " | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | : | ||
+ | } | ||
+ | |||
+ | Unsuccessful return: | ||
+ | |||
+ | JSON output object: | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | |||
+ | In both legacy " | ||
+ | e.g. 200 OK, 401 Invalid user profile, etc. | ||
+ | |||
+ | |||
+ | A full sample of a JSON object returned: | ||
+ | |||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | |||
+ | For a brief explanation of what the ucar settings mean, first note that ucar only applys to a folder item (and in a shared folder like Company Share or Company HomePage). The JSON object has as first level of name/value pairs keyed on ucar tasks names like " | ||