Groups are a flexible way to organize your reports. Here are some ways you can use them 1. Organize your reports into groups that are meaningful to you 2. Add group members, limiting which reports each of your users can access within the Yardstik platform 3. Turn report-related notifications on/off for group members and add custom emails, like a shared inbox Use this resource to create and manage groups and their memberships.
Retrieve a paginated list of groups for your account. See Pagination.
List of groups.
Unauthorized
Not Found
{- "object": "list",
- "meta": {
- "page": 2,
- "per_page": 25,
- "total_count": 137,
- "total_pages": 6
}, - "data": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "object": "group",
- "name": "string",
- "label": "string",
- "description": "string",
- "enabled": true,
- "send_notifications_to_members": false,
- "notification_email_addresses": [
- "user@example.com"
], - "reports_count": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "memberships": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "group_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "account_user_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "first_name": "string",
- "last_name": "string",
- "email_address": "user@example.com"
}
}
]
}
]
}Create a new group.
Group was created successfully.
Unauthorized
Forbidden
Unprocessable Entity
{- "label": "string"
}{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "object": "group",
- "name": "string",
- "label": "string",
- "description": "string",
- "enabled": true,
- "send_notifications_to_members": false,
- "notification_email_addresses": [
- "user@example.com"
], - "reports_count": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "memberships": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "group_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "account_user_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "first_name": "string",
- "last_name": "string",
- "email_address": "user@example.com"
}
}
]
}Retrieve a group with the given ID.
Group details.
Unauthorized
Not Found
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "object": "group",
- "name": "string",
- "label": "string",
- "description": "string",
- "enabled": true,
- "send_notifications_to_members": false,
- "notification_email_addresses": [
- "user@example.com"
], - "reports_count": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "memberships": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "group_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "account_user_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "first_name": "string",
- "last_name": "string",
- "email_address": "user@example.com"
}
}
]
}Update a group with the given ID.
Group was updated successfully.
Unauthorized
Forbidden
Not Found
Unprocessable Entity
{- "label": "string"
}{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "object": "group",
- "name": "string",
- "label": "string",
- "description": "string",
- "enabled": true,
- "send_notifications_to_members": false,
- "notification_email_addresses": [
- "user@example.com"
], - "reports_count": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "memberships": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "group_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "account_user_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "first_name": "string",
- "last_name": "string",
- "email_address": "user@example.com"
}
}
]
}Retrieve a paginated list of memberships for a group. See Pagination.
List of memberships.
Unauthorized
Not Found
{- "object": "list",
- "meta": {
- "page": 2,
- "per_page": 25,
- "total_count": 137,
- "total_pages": 6
}, - "data": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "group_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "account_user_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "first_name": "string",
- "last_name": "string",
- "email_address": "user@example.com"
}
}
]
}Add an account user to a group. Group members can access the reports assigned to their group(s). They are restricted from accessing reports assigned to groups where they’re not members, as well as unassigned reports. If the membership already exists, the existing membership is returned. Account owners cannot be added as group members.
Membership already exists.
Membership was created successfully.
Unauthorized
Forbidden
Not Found
Unprocessable Entity
{- "account_user_id": "aa809918-9412-40a8-b2fe-092591a90861"
}{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "group_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "account_user_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "first_name": "string",
- "last_name": "string",
- "email_address": "user@example.com"
}
}Retrieve a specific membership within a group.
Membership details.
Unauthorized
Not Found
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "group_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "account_user_id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "first_name": "string",
- "last_name": "string",
- "email_address": "user@example.com"
}
}Remove an account user from a group. This will not remove the account user from your account.
Membership was removed successfully.
Unauthorized
Forbidden
Not Found
{- "errors": [
- "Not Authenticated"
]
}