Fetch a program's organization hierarchy

get

/rest/api/v1.3/attributes/programs/{programName}

Fetch a list of organizations that can access a program.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Get Assigned Organizations
Type: object
Title: Get Assigned Organizations
Show Source
Nested Schema : attributes
Type: object
Show Source
Nested Schema : organizations
Type: object
Show Source
Nested Schema : attributeValues
Type: array
Value of the Assigned Attributes
Show Source
Nested Schema : assigned attribute
Type: object
Title: assigned attribute
Show Source
Back to Top

Examples

This interface is used to retrieve the organizations which have access to a program. To learn more about Organizations in Responsys, see the Responsys Help Center.

A successful request requires the following headers:

FIELDS DESCRIPTION
Authorization <AUTH_TOKEN>

Sample Request URL:

/rest/api/v1.3/attributes/programs/example_program

Sample response: Success

{
  "attributes": {
    "organizations": {
      "attributeValues": [
        {
          "id": 7,
          "name": "USA",
          "lineage": "7:"
        }
      ]
    }
  }
}
	

Sample Response: Failure

If the program does not exist, the error will resemble the following:

{
  "type": "",
  "title": "Program not found",
  "errorCode": "PROGRAM_NOT_FOUND",
  "detail": "Program with the name example_progrm not found",
  "errorDetails": []
}
     
Back to Top