# Relationship Collection Name

**URL:** <https://discuss.jsonapi.org/t/relationship-collection-name/792>\
**Category:** Uncategorized\
**Created:** [October 6, 2016, 5:27pm UTC](https://discuss.jsonapi.org/t/relationship-collection-name/792 "2016-10-06T17:27:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![palhash](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@palhash](https://discuss.jsonapi.org/u/palhash)\
**Post date:** [October 6, 2016, 5:27pm UTC](https://discuss.jsonapi.org/t/relationship-collection-name/792/1 "2016-10-06T17:27:44Z")

</div>

Can the name of a relationship be different than the name of the resource? For example:

GET AnyResource Collection

{  
“data”: [{  
“type”: “AnyResource”,  
“id”: “1.0”,  
“attributes”: {  
“version”: “1.0”  
},  
“relationships”: {  
“FilterResources”: {  
“links”: {  
“related”: “/any/1.0/filters”  
}  
}  
},  
“links”: {  
“self””: " /any/1.0"  
}  
}, {  
“type”: “AnyResource”,  
“id”: “2.0”,  
“attributes”: {  
“version”: “2.0”  
},  
“relationships”: {  
“FilterResources”: {  
“links”: {  
“related”: “/any/2.0/filters”  
}  
}  
},  
“links”: {  
“self””: " /any/2.0"  
}  
}],  
“links”: {  
“self””: " /any"  
}  
}

GET FilterResource Collection from AnyResource 1.0

{  
“data”: [{  
“type”: “FilterResource”,  
“id”: “1”,  
“attributes”: {  
“color”: “FFFFFF”  
}  
}, {  
“type”: “FilterResource”,  
“id”: “2”,  
“attributes”: {  
“color”: “000000”  
}  
}],  
“links”: {  
“self”: “/any/1.0/filters”  
}  
}

The name of the relation “FilterResources” does not match the type of the singular resource that is returned in the collection: “FilterResource”. Is this compliant with the API?

---

<div class="post-metadata">

**Author:** ![scottmcdonald](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/scottmcdonald/32/340_2.png) [@scottmcdonald](https://discuss.jsonapi.org/u/scottmcdonald)\
**Post date:** [October 12, 2016, 4:32pm UTC](https://discuss.jsonapi.org/t/relationship-collection-name/792/2 "2016-10-12T16:32:48Z")

</div>

Yes, just look at canonical example for json:api on their website: the relation name for the person who wrote an article is “author” but the resource type is Person.
