Skip to main content
PUT
Needs team:update, and a role in the workspace that can edit the team: owners and admins can. See Permissions.
{id} is the invitation’s invitation_id from the team list, and the body names the workspace in workspace_id. Send one of:
  • role: the role they join with when they accept, a name from roles. It emails no one.
  • resend_invitation: true: sends the invitation again. The invited person gets one email with a new link that works for 7 days, and the old link stops working. An expired invitation is sent again this way. One invitation goes to an address for each workspace a day, new or sent again, and invitations sent from the app’s Team page count toward it: a second the same day answers 429 with error: rate_limited, a Retry-After header, and the wait in the message. It goes once an hour at most: inside the hour the answer is 429 with error: invitation_recently_sent.
Not both in one request: change the role first, then send the invitation again. Changing the role works on every plan, Free included. Sending the invitation again is on paid plans: when the workspace owner is on Free, nothing is sent and the answer is 403 with error: plan_limit_reached and limit: team.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

The invitation's id: invitation_id in the team list.

Example:

7

Body

application/json
workspace_id
integer
required

The workspace. It must be one the key can reach.

role
enum<string>

The role they join with: a name from roles in the team list. APP_MANAGER is Admin in the app and APP_CONTENT_MANAGER is Publisher. Required unless resend_invitation is true.

Available options:
APP_MANAGER,
APP_CONTENT_MANAGER,
APP_CONTENT_CREATOR,
APP_CLIENT
resend_invitation
boolean

True to send the invitation again, with a new link and 7 more days. Leave role out.

Response

The invitation after the change.

A teammate, or an invitation not accepted yet. A member is named by id, their account id; an invitation by invitation_id, with id null: no account or membership exists for it until it is accepted.

id
integer | null
required

A member's account id: the {id} in /team-members/{id}. Null for an invitation.

workspace_id
integer
required
invitation_id
integer | null
required

An invitation's id: the {id} in /team-members/invitations/{id}. Null for a member.

name
string | null
required

A member's name. Until they set one, it is the email address's part before the @. Null for an invitation.

email
string<email>
required
avatar_url
string
required

Their photo, or a picture of their initials (of the address, for an invitation).

role
object
required

A role in a workspace.

is_active
boolean
required

True for a member, false for an invitation not accepted yet.

joined_at
string<date-time> | null
required

When a member joined. Null for an invitation.

invited_at
string<date-time> | null
required

When an invitation was last sent. Null for a member.

expires_at
string<date-time> | null
required

When an invitation's link stops working: 7 days after it was last sent. Null for a member.

expired
boolean
required

True for an invitation whose link has expired. Send it again for a new link and 7 more days.

invitation_url
string | null
required

An invitation's link to send that person yourself, when the key has team:create and its user may invite. Null otherwise, and for a member. It isn't the link in the invitation email: it opens the same invitation, but the invited person signs in (or signs up) before they can accept, and it never makes an account or signs anyone in.

pending_approvals
integer
required

Posts in this workspace waiting for this member's approval (not approved by them yet). Removing them sends any post left with no one asked who can approve it to the workspace's approvers. Always 0 for an invitation.