---
name: "Catmandu::FedoraCommons::Model::addRelationship"
section: "3pm"
platform: "linux"
package: "libcatmandu-fedoracommons-perl"
version: "0.5-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::FedoraCommons::Model::addRelationship"
---

# Catmandu::FedoraCommons::Model::addRelationship(3pm)

Perl model for the Fedora 'addRelationship' REST call

## NAME

Catmandu::FedoraCommons::Model::addRelationship - Perl model for the Fedora 'addRelationship' REST call

## SYNOPSIS

```
  use Catmandu::FedoraCommons;

  my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin');

  my $obj = $fedora->addRelationship(pid => 'demo:29' , relation => [ 'info:fedora/demo:29' , 'http://my.org/name' , 'Peter'])->parse_content;

  Returns 1 on success.
```

## SEE ALSO

Catmandu::FedoraCommons
