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

NameDescriptionTypeAdditional 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": [
    "2d87c389-8eea-4cab-9ea9-b68c0a5ef4d4",
    "9e0cb6af-024f-4af3-b8b2-4718e2e4592c"
  ],
  "community_short_name": "sample string 1"
}

Response Information

Resource Description

DescriptionType

List of resource identifiers

Dictionary`2

Response Formats

application/json, text/json

Sample:
{
  "7db48888-38e9-4bf4-9394-62ae88a090a2": [
    "6ccf8307-49ab-41bd-a159-46f932a6355c",
    "226c8b93-d5fd-44c0-ab63-15448e451416"
  ],
  "1faa2bf9-2a54-4b03-98b8-36971087bd54": [
    "bd39ebc2-714f-4bb1-8001-88436081a03f",
    "4289c6f2-a575-4198-98de-7c98463f904a"
  ]
}

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...