Create Asset Relationship
documentedCreate a relationship for an asset.
POST /cmdb/items/[id]/associate.jsonAsset Relationshipsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$domain}}.freshservice.com/cmdb/items/{{$id}}/associate.json" \
-X POST \
-u "{{FRESHSERVICE_API_KEY}}:X" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"type":"config_items", "type_id": {{$type_id}}, "relationship_type_id":"{{$relationship_type_id}}", "relationship_type":"{{$relationship_type}}"}'