Create membership

Description

Adds a new membership to an organization.

Definition

POST https://api.hirefire.io/memberships

Parameters

membership[organization_id] required   string 
The id of the organization to create the membership for 
membership[user_id] required   string 
The id of the HireFire user to create the membership for 
membership[owner] optional   boolean (false) 
Makes the new member an "owner" if true 

Result Format

200 OK

{
  "membership": {
    "id": "2b6be8e8-1b98-4582-864d-85c5711de77e",
    "user_id": "5891b322-aec6-4057-901b-28decb54e5a0",
    "organization_id": "98fdc050-b25f-4ea1-851e-7bc984088df5",
    "owner": true,
    "created_at": "2015-01-01T00:00:00.000Z",
    "updated_at": "2015-01-01T00:00:00.000Z"
  }
}