POST resource/get-related-resources-from-list
Gets the related resources of a resource
Request Information
Headers
HTTP_AUTHORIZATION: Required. OAuth 1.0 parameters with the OAuth signature of the url you are going to request. The consumer keys and access token can be obtained from the community administration.
Sample:
HTTP_AUTHORIZATION:
OAuth oauth_token="CObXqjfOisVh9%2F2GjC7NNd8BCzY%3D",
oauth_consumer_key="clGACsiGaMp%2FD%2BUwkSvRBxA1k50%3D",
oauth_nonce="VqKza6d5x1HpPQWFe08spbdOnkTQpfaLfD9Oeuyg",
oauth_signature_method="HMAC-SHA1",
oauth_timestamp="1462882011",
oauth_signature="RH5aKKKJaEvK5cIsZZzXtFh7cCk%3D"
Body Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| resource_ids |
Resource identifiers |
Collection of globally unique identifier |
Required |
| community_short_name |
Community short name |
string |
Required |
Request Formats
application/json, text/json
Sample:
{
"resource_ids": [
"45e62381-7824-4afb-bb43-42a4e0e0d94e",
"d53384d5-d57b-4771-8624-135ae62c22dd"
],
"community_short_name": "sample string 1"
}
Response Information
Resource Description
| Description | Type |
|---|---|
|
List of resource identifiers |
Dictionary`2 |
Response Formats
application/json, text/json
Sample:
{
"a7d012a5-5fc6-4353-b097-1e8bce6b29cc": [
"3fd0ca22-3e62-4f98-9ff0-f8440eb5d2d8",
"87a93d03-8df8-4a91-a8b1-1bdbea41f317"
],
"5a5c5af9-61cc-4477-bdeb-59c6c81476d1": [
"d9dbd354-1f67-481f-8230-bab7770a75d7",
"b26d3170-d6a7-4bfb-99ce-9d525001c9e2"
]
}
Response HTTP status code
On success, the response contains 200 code.
On fail, throws a WebException with code:
- 401 Unauthorized if the OAuth signature is invalid
- 400 Bad Request if the params are invalid
- 500 Internal server error if something goes wrong...
