Append element

Description

Use a HTTP POST request to append a string or an array to a resource.

Request

HTTP Method: POST

Parameter Description
id The ID of the resource.
value The string or an array to append to the resource.

Sample request

curl -X POST \
  https://<<META.tenant.domain>>/api/v1/global_resources/<<resource_id>>/append \
  -H 'content-type: application/json' \
  -H 'x-user-token: <api-token>' \
  -d '{
        "value":"[1,2,3,4,5]"
    }'

Response

A successful request will return a JSON object describing the created resource.

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

[1, 2, 3, 4, 5]
Was this helpful?