# List and retrieve Activity Roles for a specific Resource

Return a filtered, paginated list of Activity Roles for the specified Resource

Endpoint: GET /api/resources/{resourceId}/activityRoles
Version: 1.13
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer

## Path parameters:

  - `resourceId` (string, required)
    The unique Salesforce ID of the Resource whose configured Activity Roles are requested. This is REQUIRED.

## Query parameters:

  - `only` (string)
    Filter: Comma separated list of Salesforce Ids to filter by.

  - `countOnly` (boolean)
    If true, returns only the count of matching records instead of the record data.

  - `lastModifiedDate` (string)
    Filter: Search for records modified on or after the specified datetime, in the format YYYY-MM-DDThh:mm:ssZ

  - `createdDate` (string)
    Filter: Search for records created on or after the specified datetime, in the format YYYY-MM-DDThh:mm:ssZ

## Response 200:

  - `200` (unknown)
    Paged list of Resources

## Response 200 fields (application/json):

  - `paging` (object)

  - `paging.totalItems` (integer)

  - `paging.pageSize` (integer)

  - `paging.nextRecordsUrl` (string)

  - `paging.done` (boolean)

  - `paging.count` (integer)

  - `data` (array)

  - `data.CustomFields` (array, required)

  - `data.CustomFields.field` (string)

  - `data.CustomFields.value` (string)

  - `data.Id` (string, required)

  - `data.Name` (string, required)

  - `data.ActivityRole` (string, required)

  - `data.ActivityRoleId` (string, required)

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 500:

  - `500` (unknown)
    Server Error

## Response 500 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

