---
# System prepended metadata

title: Associations Interfaces

---

# Associations Interfaces

## Types

### Association
<pre>
{
    Name: String
    Office: 
    {
        President: StudentLogin
        Secretary: StudentLogin
        Treasurer: StudentLogin
    }
    Members: [StudentLogin]
    Description: String
}
</pre>
## Interfaces

### /associations
<pre>
GET {}
Return [Association]
</pre>
### /associations/findAssociation
<pre>
GET
{
    AssociationName: String
}
Return Association
</pre>
### /associations/addAssociation
<pre>
PUT 
{
    Name: String
    Description: String
    PresidentID: StudentLogin
    SecretaryID: StudentLogin
    TreasurerID: StudentLogin
}
Return Boolean
</pre>
### /associations/deleteAssociation
<pre>
DELETE
{
    AssociationName: String
}
Return Boolean
</pre>
### /associations/getMembers
<pre>
GET 
{
    name: String
}
Return [StudentLogin]
</pre>
### /associations/addMembers
<pre>
POST
{
    Student: StudentLogin
}
Return Boolean
</pre>
### /associations/removeMembers
<pre>
DELETE
{
    AssociationName: String
    Students: [StudentLogin]
}
Return Boolean
</pre>
### /associations/updateOffice
<pre>
POST
{
    AssociationName: String
    Office: 
    {
        President: StudentLogin
        Secretary: StudentLogin
        Treasurer: StudentLogin
    }
}
Return Boolean
</pre>