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": [
    "a957ff8e-6baf-42a0-b1a7-54dd4dd7542e",
    "0339f398-ae69-4d03-a15f-35a5609b2f46"
  ],
  "community_short_name": "sample string 1"
}

Response Information

Resource Description

DescriptionType

List of resource identifiers

Dictionary`2

Response Formats

application/json, text/json

Sample:
{
  "d779d1a4-ab26-48f9-960c-6e7c8cadd63f": [
    "e3ff565f-d471-4669-a5ac-e87cd5847ae3",
    "a48caf96-984f-4eea-b909-86e046388b05"
  ],
  "ebfe8fe9-b9b0-4048-84bc-6e5c0fa36b46": [
    "8d27e93b-6245-406f-8168-23ea56028af2",
    "13189b34-103b-4ddc-93b5-9f1c8ffe4b62"
  ]
}

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