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": [ "6834961e-a8a3-4d17-9c89-44e093d5fe6e", "8d841373-8146-4b83-a3f2-f2aad573f334" ], "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:
{ "8a10df23-f6da-40e1-8118-88cf8954b120": [ "cd8f4efd-19de-4e24-aac4-75f7ad8c0ac7", "a2286531-84b2-42e4-8d96-7469b7d48897" ], "f2c9110c-0170-4bda-8033-ad2e92f3a68e": [ "e4054220-d427-45e5-bad6-31913ef04c61", "b8638d3d-7595-4bb0-805d-592768f2f567" ] }
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...