Skip to content

Commit 93c61c9

Browse files
authored
Merge pull request #31 from Typeform/fix-add-workspace
fix: pass payload to workspace
2 parents 6c82e80 + 77bae56 commit 93c61c9

File tree

2 files changed

+598
-1261
lines changed

2 files changed

+598
-1261
lines changed

src/workspaces.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ const addWorkspace = (http, { name }) => {
3636

3737
return http.request({
3838
method: 'post',
39-
url: `/workspaces`
39+
url: `/workspaces`,
40+
data: {
41+
name
42+
}
4043
})
4144
}
4245

0 commit comments

Comments
 (0)