Skip to main content
Revoke Invite
Marks a pending invitation revoked. Requires the invite capability (or owner). Fires workspace.invite.revoked.

Path Parameters

string
required
The workspace UUID.
string
required
The invitation UUID.

Body Parameters

string
required
Service keys only — the user to act as. Required with a service key: a key that names nobody is refused with 400 workspace/missing-user-id. Enforced: the invite capability (or ownership) is required of the named user. A user token always acts as its own user and must not send it (400 workspace/acting-user-not-allowed). See Acting on behalf of a user.

Response

204 No Content on success, with no body.

Error Responses

The acting user can see the workspace but has no invite capability on it.
The workspace doesn’t exist, or the acting user has no relation to it (not its owner, an ancestor owner, a member or a reach-holder): the two answer alike, with the same body Fetch Workspace gives.
The invitation is already accepted, declined, or revoked.
Every path id on the workspaces bundle is checked for UUID shape before the route runs, so a malformed one is a plain 400 rather than a 500 from the database.
Every workspaces endpoint declares its body fields exactly, and a top-level body field it does not declare is refused rather than ignored, for every caller. Two or more at once are named together: Unrecognized keys: "onBehalfOf", "impersonate". Send only the fields documented above, in the JSON body. The query string carries none of them: a body field sent there is 400 workspace/wrong-location, a userId or a re-cased actingUserId there is 400 workspace/invalid-query, and any other query parameter is ignored. See Shapes the server rejects.
Returned when a service key sends a body with a Content-Type other than application/json and no actingUserId was read. Sublay parses only application/json, so the actor inside such a body is discarded and the request would name no acting user. fetch() sends text/plain;charset=UTF-8 when you pass a stringified body and set no headers — set the header. An empty JSON body and a bodiless request both pass. See Shapes the server rejects.
A service key sent no actingUserId. The request has to act as somebody, and is held to exactly that user’s standing on the workspace.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
A field this endpoint reads from the body was sent in the query string. actingUserId and every body field go in the JSON body.
Returned when a service key names an actingUserId that isn’t a user in this project.