List

Description

Retrieve a list of resources.

Request

HTTP Method: GET

Query Parameter Description
team_id Optional Return resources belonging to this team.
folder_id Optional Return resources in this folder.
curl -X GET \
  https://<<META.tenant.domain>>/api/v1/global_resources \
  -H 'content-type: application/json' \
  -H 'x-user-token: <api-token>'

Response

A successful request will return a JSON Array describing resources in the Tines tenant.

Field description

Parameter Description
id Resource ID.
user_id ID of user associated with the resource.
name Name of the resource.
team_id ID of team to which the resource belongs.
folder_id ID of folder to which the resource belongs.
read_access Control where this resource can be used (TEAM, GLOBAL, SPECIFIC_TEAMS).
shared_team_slugs List of teams' slugs where this resource can be used when read_access is SPECIFIC_TEAMS, otherwise empty.
description Description of the resource.
slug An underscored representation of the resource name
created_at ISO 8601 Timestamp representing date and time the resource was created.
updated_at ISO 8601 Timestamp representing date and time the resource was last updated.

Sample response

{
  "global_resources": [
    {
      "id": 1,
      "name": "tines_jira_url",
      "value": "tinesio.atlassian.net",
      "team_id": 2,
      "folder_id": 1,
      "user_id": 1,
      "read_access": "TEAM",
      "shared_team_slugs": [],
      "slug": "tines_jira_url",
      "created_at": "2019-12-12T21:34:16.540Z",
      "updated_at": "2019-12-12T21:34:16.540Z",
      "description": ""
    }
  ]
}
Was this helpful?