Skip to content

Instantly share code, notes, and snippets.

@sbose78
Created February 8, 2018 08:39
Show Gist options
  • Save sbose78/e846318e1c7acdbd2281ccc2b76dd147 to your computer and use it in GitHub Desktop.
Save sbose78/e846318e1c7acdbd2281ccc2b76dd147 to your computer and use it in GitHub Desktop.
addCollaborators(spaceId: string, users: User[]): Observable<Response> {
let url = this.spacesUrl + "/" + spaceId + '/collaborators';
let payload = JSON.stringify({ data: users });
return this.http
.post(url, payload, { headers: this.headers })
.catch((error) => {
return this.handleError(error);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment