Description

Retrieve a list of global resources.

Request

HTTP Method: GET

curl -X GET \
  https://<tenant-name>.tines.io/api/v1/global_resources \
  -H 'content-type: application/json' \
  -H 'x-user-email: <email-address>' \
  -H 'x-user-token: <api-token>'

Response

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

Field description

Parameter Description
id Global resource ID.
user_id ID of user associated with the resource.
name Name of the global resource.
value_type Global resource type, either: text, json or array
created_at ISO 8601 Timestamp respresenting date and time the event was emitted.
updated_at ISO 8601 Timestamp respresenting date and time the event was last updated. Will always by the same as ‘created_at’.

Sample response

{
  "global_resources": [
    {
      "id": 1,
      "user_id": 1,
      "name": "tines_jira_url",
      "value_type": "text",
      "value": "tinesio.atlassian.net",
      "created_at": "2019-12-12T21:34:16.540Z",
      "updated_at": "2019-12-12T21:34:16.540Z"
    }
  ]
}