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": [ "9088fc1e-f292-476b-88e4-6c98c8a37715", "6313c018-a602-4ae3-9fc7-69cd75410493" ], "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:
{ "3b9ffde9-8a79-404b-82a8-634ee078721b": [ "da76cc23-4bcc-4534-89d3-5f60bc2618b8", "7de922ff-1ff6-4471-9c24-9619af17137a" ], "0eec4af0-d6d0-4e5f-979e-18d5cca93872": [ "cf5d1a30-7670-47eb-9f4f-a5b77a122af0", "19e5d41f-4bbd-4a9d-a2e8-de2d4fa71144" ] }
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...