Description

Delete a global resource.

Request

HTTP Method: DELETE

Parameter Description
id The ID of the global resource to delete.
curl -X DELETE \
  https://<tenant-name>.tines.io/api/v1/global_resources/<global-resource-id> \
  -H 'content-type: application/json' \
  -H 'x-user-email: <email-address>' \
  -H 'x-user-token: <api-token>'

Response

A successful request will return the JSON object describing the deleted global resource.

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

{
    "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"
}