Workspace
curl https://api.tapeapp.com/v1/workspace/org \
-H "Authorization: Bearer $TAPE_TOKEN"
{
"total": 2,
"workspaces": [
{
"workspace_id": 1,
"name": "Task management",
"slug": "task-management",
"type": "closed",
"description": "Manage all tasks and projects inside this workspace.",
"org_id": 1337
},
{
"workspace_id": 2,
"name": "Contact directory",
"slug": "contact-directory",
"type": "default",
"description": "Keep track of our contacts here.",
"org_id": 1337
}
]
}
curl https://api.tapeapp.com/v1/workspace/1 \
-H "Authorization: Bearer $TAPE_TOKEN"
{
"workspace_id": 1,
"name": "Task management",
"slug": "task-management",
"type": "closed",
"description": "Manage all tasks and projects inside this workspace.",
"org_id": 1337
}
curl -X POST https://api.tapeapp.com/v1/workspace \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"name": "Task management",
"type": "closed",
"description": "Manage all tasks and projects inside this workspace."
}'
{
"workspace_id": 1,
"name": "Task management",
"slug": "task-management",
"type": "closed",
"description": "Manage all tasks and projects inside this workspace.",
"org_id": 1337
}
curl -X PUT https://api.tapeapp.com/v1/workspace/1 \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"name": "Task management (NEW)",
"description": "Manage all tasks and projects inside this NEW workspace."
}'
{
"workspace_id": 1,
"name": "Task management (NEW)",
"slug": "task-management",
"type": "closed",
"description": "Manage all tasks and projects inside this NEW workspace.",
"org_id": 1337
}
curl -X DELETE https://api.tapeapp.com/v1/workspace/1 \
-H "Authorization: Bearer $TAPE_TOKEN"
{
"workspace_id": 1,
"name": "Task management (NEW)",
"slug": "task-management",
"type": "closed",
"description": "Manage all tasks and projects inside this NEW workspace.",
"org_id": 1337
}
curl https://api.tapeapp.com/v1/workspace/1/member \
-H "Authorization: Bearer $TAPE_TOKEN"
{
"workspace_members": [
{
"workspace_id": 1,
"user_id": 10000,
"role": "admin"
},
{
"workspace_id": 1,
"user_id": 10001,
"role": "member"
}
]
}
curl -X POST https://api.tapeapp.com/v1/workspace/1/member \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"user_id": 10002,
"role": "admin"
}'
{
"workspace_id": 1,
"user_id": 10002,
"role": "admin"
}
curl -X DELETE https://api.tapeapp.com/v1/workspace/1/member/10002 \
-H "Authorization: Bearer $TAPE_TOKEN"
{}
Use these endpoints to list, create, update and delete workspaces, and to manage their members.
A workspace groups apps and their members within your organization. The Podio API calls it a space, and workspace_id replaces space_id.
To find a workspace ID, see Retrieve workspaces. The Developer info of any of its apps also shows it. See Find the app ID and field IDs.
Endpoints that read workspaces need workspaces:read. Creating, updating and deleting need workspaces:edit. Adding and removing members needs workspaces.members:manage. See Capabilities.
Retrieve workspaces
Use this endpoint to list all workspaces you can access in your organization.
/v1/workspace/orgapi.tapeapp.comcurl https://api.tapeapp.com/v1/workspace/org \
-H "Authorization: Bearer $TAPE_TOKEN"
{
"total": 2,
"workspaces": [
{
"workspace_id": 1,
"name": "Task management",
"slug": "task-management",
"type": "closed",
"description": "Manage all tasks and projects inside this workspace.",
"org_id": 1337
},
{
"workspace_id": 2,
"name": "Contact directory",
"slug": "contact-directory",
"type": "default",
"description": "Keep track of our contacts here.",
"org_id": 1337
}
]
}
Retrieve a workspace
Use this endpoint to read one workspace by its ID.
/v1/workspace/{workspace_id}api.tapeapp.comcurl https://api.tapeapp.com/v1/workspace/1 \
-H "Authorization: Bearer $TAPE_TOKEN"
{
"workspace_id": 1,
"name": "Task management",
"slug": "task-management",
"type": "closed",
"description": "Manage all tasks and projects inside this workspace.",
"org_id": 1337
}
Requirements: workspaces:read, and membership in the workspace. Works with a personal access token, an OAuth access token or a user API key.
Errors
- A workspace you aren't a member of, for example one in another organization, returns
400withworkspace_invalid_permission. - A workspace ID that doesn't exist returns
404.
curl -X POST https://api.tapeapp.com/v1/workspace \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"name": "Task management",
"type": "closed",
"description": "Manage all tasks and projects inside this workspace."
}'
{
"workspace_id": 1,
"name": "Task management",
"slug": "task-management",
"type": "closed",
"description": "Manage all tasks and projects inside this workspace.",
"org_id": 1337
}
The response contains the new workspace:
Set type to "closed", "open", "default" or "private". These are the workspace types described in the Help Center.
General behavior
- An organization can hold at most 500 workspaces. When it reaches this limit, Tape rejects further create requests until you delete a workspace.
- You can't change the type of a workspace later through the API. Choose the right
typewhen you create it. - A personal access token with limited content access can't create workspaces. Use a token whose content access is All.
Requirements: workspaces:edit, and an organization role that may create workspaces. Works with a personal access token, an OAuth access token or a user API key.
Body parameters
namestring
Required. Name of the workspace.
typestring
Required. One of closed, open, default or private.
descriptionstring
Description of the workspace. Optional.
slugstring
Slug of the workspace. Optional.
iconobject
Icon of the workspace. Optional, see Icon.
| Parameter | Type | Description |
|---|---|---|
name | string | Required. Name of the workspace. |
type | string | Required. One of closed, open, default or private. |
description | string | Description of the workspace. Optional. |
slug | string | Slug of the workspace. Optional. |
icon | object | Icon of the workspace. Optional, see Icon. |
Update a workspace
Use this endpoint to change the name, description, slug or icon of a workspace.
/v1/workspace/{workspace_id}api.tapeapp.comcurl -X PUT https://api.tapeapp.com/v1/workspace/1 \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"name": "Task management (NEW)",
"description": "Manage all tasks and projects inside this NEW workspace."
}'
{
"workspace_id": 1,
"name": "Task management (NEW)",
"slug": "task-management",
"type": "closed",
"description": "Manage all tasks and projects inside this NEW workspace.",
"org_id": 1337
}
The response contains the updated workspace:
General behavior
- A new name doesn't change the slug. Send
slugto change it. - Tape ignores
typein an update. A workspace keeps the type it was created with.
Requirements: workspaces:edit, and the Admin role in the workspace. Works with a personal access token, an OAuth access token or a user API key.
Body parameters
namestring
New name of the workspace. Optional.
descriptionstring
New description. Optional.
slugstring
New slug. Optional.
iconobject
New icon. Optional, see Icon.
| Parameter | Type | Description |
|---|---|---|
name | string | New name of the workspace. Optional. |
description | string | New description. Optional. |
slug | string | New slug. Optional. |
icon | object | New icon. Optional, see Icon. |
Delete a workspace
Use this endpoint to delete a workspace with all its apps and records.
/v1/workspace/{workspace_id}api.tapeapp.comcurl -X DELETE https://api.tapeapp.com/v1/workspace/1 \
-H "Authorization: Bearer $TAPE_TOKEN"
{
"workspace_id": 1,
"name": "Task management (NEW)",
"slug": "task-management",
"type": "closed",
"description": "Manage all tasks and projects inside this NEW workspace.",
"org_id": 1337
}
The response contains the deleted workspace:
Requirements: workspaces:edit, and the Admin role in the workspace. Works with a personal access token, an OAuth access token or a user API key.
Retrieve workspace members
Use this endpoint to list the members of a workspace and their roles.
/v1/workspace/{workspace_id}/memberapi.tapeapp.comcurl https://api.tapeapp.com/v1/workspace/1/member \
-H "Authorization: Bearer $TAPE_TOKEN"
{
"workspace_members": [
{
"workspace_id": 1,
"user_id": 10000,
"role": "admin"
},
{
"workspace_id": 1,
"user_id": 10001,
"role": "member"
}
]
}
role is admin or member. Older memberships can also return guest.
Requirements: workspaces:read, and membership in the workspace. Works with a personal access token, an OAuth access token or a user API key.
Add a workspace member
Use this endpoint to add a user of your organization to a workspace, or to change their role.
/v1/workspace/{workspace_id}/memberapi.tapeapp.comcurl -X POST https://api.tapeapp.com/v1/workspace/1/member \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"user_id": 10002,
"role": "admin"
}'
{
"workspace_id": 1,
"user_id": 10002,
"role": "admin"
}
If the user is already a member, Tape updates their role. To find the user_id, see Retrieve organization users.
Set role to "admin" or "member". These are the workspace roles described in the Help Center. Tape no longer accepts "guest" here.
Requirements: workspaces.members:manage, and the Admin role in the workspace. Works with a personal access token, an OAuth access token or a user API key.
Errors
A user_id outside your organization returns 404.
Body parameters
user_idinteger
Required. ID of the user to add.
rolestring
Required. admin or member.
| Parameter | Type | Description |
|---|---|---|
user_id | integer | Required. ID of the user to add. |
role | string | Required. admin or member. |
Remove a workspace member
Use this endpoint to remove a member from a workspace.
/v1/workspace/{workspace_id}/member/{user_id}api.tapeapp.comcurl -X DELETE https://api.tapeapp.com/v1/workspace/1/member/10002 \
-H "Authorization: Bearer $TAPE_TOKEN"
{}
General behavior
- The user stays in your organization.
- Removing a user who isn't a member returns
200and changes nothing.
Requirements: workspaces.members:manage, and the Admin role in the workspace. Works with a personal access token, an OAuth access token or a user API key.