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": [
    "72f9212f-7ff9-420b-a1e3-a485db336d2d",
    "1c5bdd80-7a26-4652-8c13-e4afa04ed9cc"
  ],
  "community_short_name": "sample string 1"
}

Response Information

Resource Description

DescriptionType

List of resource identifiers

Dictionary`2

Response Formats

application/json, text/json

Sample:
{
  "cfaf4c19-d37c-45be-bf66-f5dff8e902e4": [
    "26c7169e-9d7b-4e68-adad-0f2b43157e89",
    "36316964-7d58-4fc8-a6c8-9b8cae1ba74f"
  ],
  "ba552e50-ef23-482a-a1db-ff3a8f81f9d3": [
    "8bdc8230-5dd3-4f2c-99f2-3752160ec14b",
    "eb84fb89-6d95-419d-aecb-6c097ef56b49"
  ]
}

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