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": [
    "7aa93af6-b29b-4d88-8eaf-ff45d29499e6",
    "a3a9a2dd-97e5-4bf0-9617-aa1c0265a3e0"
  ],
  "community_short_name": "sample string 1"
}

Response Information

Resource Description

DescriptionType

List of resource identifiers

Dictionary`2

Response Formats

application/json, text/json

Sample:
{
  "fea52f03-c09f-4bb1-9d7c-7e06848e8c8a": [
    "dcc324be-3fd7-45a8-bc16-ab6150215a66",
    "f41cec39-368b-4ae0-89c7-da0577ad87d3"
  ],
  "795c018c-127a-4e02-b969-c0f77275f45f": [
    "6ad4bb3e-a330-4854-96bb-e3e5c1e16e40",
    "7e1ca98d-e611-4692-97bf-b2e17580ac2e"
  ]
}

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