Skip to content

Commit 50cf250

Browse files
committed
added org update and level up
1 parent 4137e7a commit 50cf250

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

bitmovin/account/organizations/organizations.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import http from '../../http';
33
import groups from './groups';
44

55
export const organizations = (configuration, http) => {
6-
const { get, post, delete_ } = http;
6+
const { get, post, delete_, put } = http;
77
const organizationsBaseUrl = urljoin(configuration.apiBaseUrl, 'account', 'organizations');
88

99
let fn = (organizationId) => {
@@ -16,6 +16,10 @@ export const organizations = (configuration, http) => {
1616
let url = urljoin(organizationsBaseUrl, organizationId);
1717
return delete_(configuration, url);
1818
},
19+
update: (organization) => {
20+
let url = urljoin(organizationsBaseUrl, organizationId);
21+
return put(configuration, url, organization);
22+
},
1923
groups: groups(configuration, organizationId)
2024
};
2125
};

bitmovin/bitmovin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default class Bitmovin {
6969
'X-Api-Key' : configuration.apiKey,
7070
'X-Tenant-Org-Id' : configuration.tenantOrgId,
7171
'X-Api-Client' : configuration.xApiClient,
72-
'X-Api-Client-Version': '1.2.0'
72+
'X-Api-Client-Version': '1.2.1'
7373
};
7474

7575
this.configuration = configuration;

examples/encoding/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "bitmovin-javascript-examples",
33
"version": "0.0.1",
44
"dependencies": {
5-
"bitmovin-javascript": "1.2.0",
5+
"bitmovin-javascript": "1.2.1",
66
"bluebird": "^3.4.7"
77
}
88
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bitmovin-javascript",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"scripts": {
55
"lint": "./node_modules/eslint/bin/eslint.js --color ./bitmovin",
66
"test": "node scripts/testRunner.js tests/",

0 commit comments

Comments
 (0)