Skip to main content
POST
/
xmetadata
/
set
Set xmetadata
curl --request POST \
  --url https://access.utgl.io/v1/xmetadata/set \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "target": {
    "type": "cardaccount",
    "id": "xxx"
  },
  "xid": "<string>",
  "xmetadata": {
    "key1": "value1",
    "key2": [
      "value2.1",
      "value2.2"
    ]
  }
}
'
{
  "target": {
    "type": "cardaccount",
    "id": "xxx"
  },
  "xid": "<string>",
  "xmetadata": {
    "key1": "value1",
    "key2": [
      "value2.1",
      "value2.2"
    ]
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
target
object
required
xid
string

External identifier, unique across all resources created under this account.

xmetadata
object

External metadata

Example:
{
"key1": "value1",
"key2": ["value2.1", "value2.2"]
}

Response

200 - application/json

OK

target
object
required
xid
string
required

External identifier, unique across all resources created under this account.

xmetadata
object
required

External metadata

Example:
{
"key1": "value1",
"key2": ["value2.1", "value2.2"]
}