Skip to main content

Organizations API

Organizations are basically groups of users that are allowed to have access to the same collections and videos. In order to create a collection you need to create an organization that contains that collection.

List all your existing organizations​

Request

GET /api/user/organizations
Host: app.flipbase.com
Content-Type: application/json
Authorization: Signature e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca49:vWHRrjnw+QpH1DgDTrR5Lpa9vqP14toWz0X2Tdp3/Ck=

Response

{
"data": [{
"type": "organizations",
"id": "5370df982b2779cf60e03217",
"attributes": {
"name": "Organization ABC",
"employer_branding_license": true,
"description": "ABC corporate recruitment related videos"
}
}, {
"type": "organizations",
"id": "23d10d0fe4b4f2b53d967c24",
"attributes": {
"name": "Organization XYZ",
"employer_branding_license": true,
"description": "Employer branding videos"
}
}]
}

Create a organization​

Request

POST /api/organizations
Host: app.flipbase.com
Content-Type: application/json
Authorization: Signature e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca49:vWHRrjnw+QpH1DgDTrR5Lpa9vqP14toWz0X2Tdp3/Ck=

{
"data": {
"type": "organizations",
"attributes": {
"name": "Organization ABC",
"employer_branding_license": true,
"description": "ABC corporate recruitment related videos"
}
}
}

Response

{
"data": {
"type": "organizations",
"id": "5370df982b2779cf60e03217",
"attributes": {
"name": "Organization ABC",
"employer_branding_license": true,
"description": "ABC corporate recruitment related videos"
}
}
}

Retrieve a single organization​

Request

GET /api/organizations/5370df982b2779cf60e03217
Host: app.flipbase.com
Content-Type: application/json
Authorization: Signature e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca49:vWHRrjnw+QpH1DgDTrR5Lpa9vqP14toWz0X2Tdp3/Ck=

Response

{
"data": {
"type": "organizations",
"id": "5370df982b2779cf60e03217",
"attributes": {
"name": "Organization ABC",
"employer_branding_license": true,
"description": "ABC corporate recruitment related videos"
}
}
}

Update a organization​

Request

PUT /api/organizations/5370df982b2779cf60e03217
Host: app.flipbase.com
Content-Type: application/json
Authorization: Signature e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca49:vWHRrjnw+QpH1DgDTrR5Lpa9vqP14toWz0X2Tdp3/Ck=


{
"data": {
"type": "organizations",
"id": "5370df982b2779cf60e03217",
"attributes": {
"name": "Organization ABC - department X",
"employer_branding_license": true,
"description": "ABC corporate recruitment related videos"
}
}
}

Response

{
"data": {
"type": "organizations",
"id": "5370df982b2779cf60e03217",
"attributes": {
"name": "Organization ABC - department X",
"employer_branding_license": true,
"description": "ABC corporate recruitment related videos"
}
}
}