Table of Contents

Search

  1. Preface
  2. Informatica Intelligent Cloud Services REST API
  3. Platform REST API version 2 resources
  4. Platform REST API version 3 resources
  5. Data Integration REST API
  6. Mass Ingestion Files REST API
  7. RunAJob utility
  8. REST API codes
  9. REST API resource quick references

REST API Reference

REST API Reference

Assigning tags

Assigning tags

Use the TagObjects resource to assign tags to an asset.

POST request

To assign a tag to an asset, use the following URI:
/public/core/v3/TagObjects
Include the following information:
Field
Type
Required
Description
id
String
Yes
Global identifier of the object.
tags
List
Yes
List of tags to assign to the object.

POST example

To assign tags to two assets, you might use a POST request similar to the following example:
POST <baseApiUrl>/public/core/v3/TagObjects Content-Type: application/json Accept: application/json INFA-SESSION-ID: <sessionId> [{ "id":"5kuZuAC3Os0dycZuqGpqmM", "tags": ["R12 Tag", "DevQA"] }, { "id":"7feHjtC50mLb44CTW4Xmon", "tags": ["Prod", "DevQA", "R12 Tag"] }]
Returns the 204 response code if the request is successful. Returns errors if the request is unsuccessful. If the request is partially successful, returns information for the successful and unsuccessful transactions, as shown in the following example:
[{ "id": "9WfGCcHsygueFigGhAdWqh", "status": "FAILED", "msg": "Object: 9WfGCcHsygueFigGhAdWqh skipped, missing READ/UPDATE permissions." }, { "id": "0cLD48xB4TOgm8cNjP2kmJ", "status": "SUCCESS", "msg": "Object: 0cLD48xB4TOgm8cNjP2kmJ Operation Message: [Tag assignment succeeded for artifact 0cLD48xB4TOgm8cNjP2kmJ.]" }]


Updated May 03, 2021